futures_signals::signal_map

Struct Always

Source
pub struct Always<A> { /* private fields */ }

Trait Implementations§

Source§

impl<A: Debug> Debug for Always<A>

Source§

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

Formats the value using the given formatter. Read more
Source§

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

Source§

type Key = K

Source§

type Value = V

Source§

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

Source§

impl<A> Unpin for Always<A>

Auto Trait Implementations§

§

impl<A> Freeze for Always<A>
where A: Freeze,

§

impl<A> RefUnwindSafe for Always<A>
where A: RefUnwindSafe,

§

impl<A> Send for Always<A>
where A: Send,

§

impl<A> Sync for Always<A>
where A: Sync,

§

impl<A> UnwindSafe for Always<A>
where A: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SignalMapExt for T
where T: SignalMap + ?Sized,

Source§

fn map_value<A, F>(self, callback: F) -> MapValue<Self, F>
where F: FnMut(Self::Value) -> A, Self: Sized,

Source§

fn map_value_signal<A, F>(self, callback: F) -> MapValueSignal<Self, A, F>
where A: Signal, F: FnMut(Self::Value) -> A, Self: Sized,

Source§

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.
Source§

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,

Source§

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.
Source§

fn boxed<'a>( self, ) -> Pin<Box<dyn SignalMap<Key = Self::Key, Value = Self::Value> + Send + 'a>>
where Self: Sized + Send + 'a,

Source§

fn boxed_local<'a>( self, ) -> Pin<Box<dyn SignalMap<Key = Self::Key, Value = Self::Value> + 'a>>
where Self: Sized + 'a,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.