Struct dominator_helpers::signals::DefaultSignal [−][src]
pub struct DefaultSignal<S, T> where
S: Signal<Item = T>, { /* fields omitted */ }
Expand description
If the provided signal is None, then a signal of the provided default otherwise, the signal’s value
Implementations
Trait Implementations
Auto Trait Implementations
impl<S, T> RefUnwindSafe for DefaultSignal<S, T> where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for DefaultSignal<S, T> where
S: Send,
T: Send,
impl<S, T> Sync for DefaultSignal<S, T> where
S: Sync,
T: Sync,
impl<S, T> Unpin for DefaultSignal<S, T> where
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for DefaultSignal<S, T> where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Creates a Stream
which contains the values of self
. Read more
Creates a Signal
which uses a closure to transform the value. Read more
Creates a Signal
which uses a closure to transform the value. Read more
Creates a Signal
which uses a closure to asynchronously transform the value. Read more
Creates a Signal
which uses a closure to filter and transform the value. Read more
Creates a Signal
which delays updates until a Future
finishes. Read more
Creates a Signal
which flattens self
. Read more
fn switch<A, B>(self, callback: B) -> Switch<Self, A, B> where
A: Signal,
B: FnMut(Self::Item) -> A,
fn switch_signal_vec<A, F>(self, callback: F) -> SwitchSignalVec<Self, A, F> where
A: SignalVec,
F: FnMut(Self::Item) -> A,
fn for_each<U, F>(self, callback: F) -> ForEach<Self, U, F> where
F: FnMut(Self::Item) -> U,
U: Future<Output = ()>,
A convenience for calling Signal::poll_change
on Unpin
types.