futures_signals::signal_map

Trait SignalMap

Source
pub trait SignalMap {
    type Key;
    type Value;

    // Required method
    fn poll_map_change(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>;
}

Required Associated Types§

Required Methods§

Source

fn poll_map_change( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>

Implementations on Foreign Types§

Source§

impl<'a, A> SignalMap for &'a mut A
where A: ?Sized + SignalMap + Unpin,

Source§

type Key = <A as SignalMap>::Key

Source§

type Value = <A as SignalMap>::Value

Source§

fn poll_map_change( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>

Source§

impl<A> SignalMap for Box<A>
where A: ?Sized + SignalMap + Unpin,

Source§

type Key = <A as SignalMap>::Key

Source§

type Value = <A as SignalMap>::Value

Source§

fn poll_map_change( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>

Source§

impl<A> SignalMap for Pin<A>
where A: Unpin + DerefMut, A::Target: SignalMap,

Source§

type Key = <<A as Deref>::Target as SignalMap>::Key

Source§

type Value = <<A as Deref>::Target as SignalMap>::Value

Source§

fn poll_map_change( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>

Implementors§

Source§

impl<A, B, F> SignalMap for MapValue<A, F>
where A: SignalMap, F: FnMut(A::Value) -> B,

Source§

type Key = <A as SignalMap>::Key

Source§

type Value = B

Source§

impl<A, B, F> SignalMap for MapValueSignal<A, B, F>
where A: SignalMap, A::Key: Clone + Ord, B: Signal, F: FnMut(A::Value) -> B,

Source§

type Key = <A as SignalMap>::Key

Source§

type Value = <B as Signal>::Item

Source§

impl<A, K, V> SignalMap for Always<A>
where A: IntoIterator<Item = (K, V)>,

Source§

type Key = K

Source§

type Value = V

Source§

impl<K, V> SignalMap for MutableSignalMap<K, V>

Source§

type Key = K

Source§

type Value = V