Struct futures_signals::signal_map::MutableSignalMap[][src]

#[must_use = "SignalMaps do nothing unless polled"]
pub struct MutableSignalMap<K, V> { /* fields omitted */ }

Trait Implementations

impl<K: Debug, V: Debug> Debug for MutableSignalMap<K, V>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<K, V> SignalMap for MutableSignalMap<K, V>[src]

type Key = K

type Value = V

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

impl<K, V> Unpin for MutableSignalMap<K, V>[src]

Auto Trait Implementations

impl<K, V> !RefUnwindSafe for MutableSignalMap<K, V>

impl<K, V> Send for MutableSignalMap<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for MutableSignalMap<K, V> where
    K: Send,
    V: Send

impl<K, V> !UnwindSafe for MutableSignalMap<K, V>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> SignalMapExt for T where
    T: SignalMap + ?Sized
[src]

fn map_value<A, F>(self, callback: F) -> MapValue<Self, F> where
    F: FnMut(Self::Value) -> A,
    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>

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
[src]

fn poll_map_change_unpin(
    &mut self,
    cx: &mut Context<'_>
) -> Poll<Option<MapDiff<Self::Key, Self::Value>>> where
    Self: Unpin + Sized
[src]

A convenience for calling SignalMap::poll_map_change on Unpin types.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.