Struct futures_signals::signal_map::MapValue
source · [−]pub struct MapValue<A, B> { /* private fields */ }
Trait Implementations
impl<'pin, A, B> Unpin for MapValue<A, B> where
__MapValue<'pin, A, B>: Unpin,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for MapValue<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for MapValue<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for MapValue<A, B> where
A: Sync,
B: Sync,
impl<A, B> UnwindSafe for MapValue<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> SignalMapExt for T where
T: SignalMap + ?Sized,
impl<T> SignalMapExt for T where
T: SignalMap + ?Sized,
fn map_value<A, F>(self, callback: F) -> MapValue<Self, F> where
F: FnMut(Self::Value) -> A,
Self: Sized,
sourcefn key_cloned(self, key: Self::Key) -> MapWatchKeySignal<Self> where
Self::Key: PartialEq,
Self::Value: Clone,
Self: Sized,
fn key_cloned(self, key: Self::Key) -> MapWatchKeySignal<Self> where
Self::Key: PartialEq,
Self::Value: Clone,
Self: Sized,
Returns a signal that tracks the value of a particular key in the map.
fn for_each<U, F>(self, callback: F) -> ForEach<Self, U, F>ⓘNotable traits for ForEach<A, B, C>impl<A, B, C> Future for ForEach<A, B, C> where
A: SignalMap,
B: Future<Output = ()>,
C: FnMut(MapDiff<A::Key, A::Value>) -> B, type Output = ();
where
U: Future<Output = ()>,
F: FnMut(MapDiff<Self::Key, Self::Value>) -> U,
Self: Sized,
A: SignalMap,
B: Future<Output = ()>,
C: FnMut(MapDiff<A::Key, A::Value>) -> B, type Output = ();
sourcefn poll_map_change_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Option<MapDiff<Self::Key, Self::Value>>> where
Self: Unpin + Sized,
fn poll_map_change_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Option<MapDiff<Self::Key, Self::Value>>> where
Self: Unpin + Sized,
A convenience for calling SignalMap::poll_map_change
on Unpin
types.