Trait futures_signals::signal_map::SignalMapExt [−][src]
pub trait SignalMapExt: SignalMap { fn map_value<A, F>(self, callback: F) -> MapValue<Self, F>
where
F: FnMut(Self::Value) -> A,
Self: Sized, { ... } fn key_cloned(self, key: Self::Key) -> MapWatchKeySignal<Self>
where
Self::Key: PartialEq,
Self::Value: Clone,
Self: Sized, { ... } fn for_each<U, F>(self, callback: F) -> ForEach<Self, U, F>ⓘ
where
U: Future<Output = ()>,
F: FnMut(MapDiff<Self::Key, Self::Value>) -> U,
Self: Sized, { ... } fn poll_map_change_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>
where
Self: Unpin + Sized, { ... } }
Provided methods
fn map_value<A, F>(self, callback: F) -> MapValue<Self, F> where
F: FnMut(Self::Value) -> A,
Self: Sized,
[src]
F: FnMut(Self::Value) -> A,
Self: Sized,
fn key_cloned(self, key: Self::Key) -> MapWatchKeySignal<Self> where
Self::Key: PartialEq,
Self::Value: Clone,
Self: Sized,
[src]
fn key_cloned(self, key: Self::Key) -> MapWatchKeySignal<Self> where
Self::Key: PartialEq,
Self::Value: Clone,
Self: Sized,
[src]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>ⓘ where
U: Future<Output = ()>,
F: FnMut(MapDiff<Self::Key, Self::Value>) -> U,
Self: Sized,
[src]
U: Future<Output = ()>,
F: FnMut(MapDiff<Self::Key, Self::Value>) -> U,
Self: Sized,
Implementors
impl<T: ?Sized> SignalMapExt for T where
T: SignalMap,
[src]
T: SignalMap,