pub fn result<S, E>(value: Result<S, E>) -> ResultSignal<S, E>where
S: Signal,Expand description
Converts a Result<Signal<A>, B> into a Signal<Result<A, B>>.
This is mostly useful with SignalExt::switch or SignalExt::flatten.
If the value is Err(value) then it behaves like always, it just returns that
value.
If the value is Ok(signal) then it will return the result of the signal,
except wrapped in Ok.