Struct dominator_helpers::signals::DefaultSignal
source · pub struct DefaultSignal<S, T>where
S: Signal<Item = T>,{ /* private fields */ }
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>
impl<S, T> Sync for DefaultSignal<S, T>
impl<S, T> Unpin for DefaultSignal<S, T>
impl<S, T> UnwindSafe for DefaultSignal<S, T>where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> SignalExt for T
impl<T> SignalExt for T
source§fn to_stream(self) -> SignalStream<Self>where
Self: Sized,
fn to_stream(self) -> SignalStream<Self>where
Self: Sized,
fn to_future(self) -> SignalFuture<Self>where
Self: Sized,
source§fn map<A, B>(self, callback: B) -> Map<Self, B>
fn map<A, B>(self, callback: B) -> Map<Self, B>
Creates a
Signal
which uses a closure to transform the value. Read morefn inspect<A>(self, callback: A) -> Inspect<Self, A>
fn eq(self, value: Self::Item) -> Eq<Self>
fn neq(self, value: Self::Item) -> Neq<Self>
source§fn dedupe_map<A, B>(self, callback: B) -> DedupeMap<Self, B>
fn dedupe_map<A, B>(self, callback: B) -> DedupeMap<Self, B>
Creates a
Signal
which uses a closure to transform the value. Read morefn dedupe(self) -> Dedupe<Self>
fn dedupe_cloned(self) -> DedupeCloned<Self>
source§fn map_future<A, B>(self, callback: B) -> MapFuture<Self, A, B>
fn map_future<A, B>(self, callback: B) -> MapFuture<Self, A, B>
Creates a
Signal
which uses a closure to asynchronously transform the value. Read moresource§fn filter_map<A, B>(self, callback: B) -> FilterMap<Self, B>
fn filter_map<A, B>(self, callback: B) -> FilterMap<Self, B>
Creates a
Signal
which uses a closure to filter and transform the value. Read morefn switch<A, B>(self, callback: B) -> Switch<Self, A, B>
fn switch_signal_vec<A, F>(self, callback: F) -> SwitchSignalVec<Self, A, F>
source§fn sample_stream_cloned<A>(self, stream: A) -> SampleStreamCloned<Self, A>
fn sample_stream_cloned<A>(self, stream: A) -> SampleStreamCloned<Self, A>
fn for_each<U, F>(self, callback: F) -> ForEach<Self, U, F>
fn to_signal_vec(self) -> SignalSignalVec<Self>where
Self: Sized,
fn wait_for(self, value: Self::Item) -> WaitFor<Self>
fn first(self) -> First<Self>where
Self: Sized,
fn debug(self) -> SignalDebug<Self>
source§fn broadcast(self) -> Broadcaster<Self>where
Self: Sized,
fn broadcast(self) -> Broadcaster<Self>where
Self: Sized,
A convenience method for calling
Broadcaster::new
. Read moresource§fn poll_change_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Option<Self::Item>>
fn poll_change_unpin( &mut self, cx: &mut Context<'_> ) -> Poll<Option<Self::Item>>
A convenience for calling
Signal::poll_change
on Unpin
types.