[−][src]Struct postage::watch::Receiver
The receiver half of a watch channel. Can recieve state updates with the postage::Sink trait.
The reciever will be woken when new values arive, but is not guaranteed to recieve every message.
Implementations
impl<T> Receiver<T>
[src]
Trait Implementations
impl<T> Clone for Receiver<T>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Stream for Receiver<T> where
T: Clone,
[src]
T: Clone,
type Item = T
pub fn poll_recv(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> PollRecv<Self::Item>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> PollRecv<Self::Item>
pub fn recv(&mut self) -> RecvFuture<'_, Self>ⓘNotable traits for RecvFuture<'s, S>
impl<'s, S: ?Sized> Future for RecvFuture<'s, S> where
S: Stream + Unpin, type Output = Option<S::Item>;
where
Self: Unpin,
[src]
Notable traits for RecvFuture<'s, S>
impl<'s, S: ?Sized> Future for RecvFuture<'s, S> where
S: Stream + Unpin, type Output = Option<S::Item>;
Self: Unpin,
pub fn try_recv(&mut self) -> Result<Self::Item, TryRecvError> where
Self: Unpin,
[src]
Self: Unpin,
pub fn map<Map, Into>(self, map: Map) -> MapStream<Self, Map, Into> where
Map: Fn(Self::Item) -> Into,
Self: Sized,
[src]
Map: Fn(Self::Item) -> Into,
Self: Sized,
pub fn filter<Filter>(self, filter: Filter) -> FilterStream<Self, Filter> where
Self: Sized + Unpin,
Filter: FnMut(&Self::Item) -> bool + Unpin,
[src]
Self: Sized + Unpin,
Filter: FnMut(&Self::Item) -> bool + Unpin,
pub fn merge<Other>(self, other: Other) -> MergeStream<Self, Other> where
Other: Stream<Item = Self::Item>,
Self: Sized,
[src]
Other: Stream<Item = Self::Item>,
Self: Sized,
pub fn chain<Other>(self, other: Other) -> ChainStream<Self, Other> where
Other: Stream<Item = Self::Item>,
Self: Sized,
[src]
Other: Stream<Item = Self::Item>,
Self: Sized,
pub fn find<Condition>(
self,
condition: Condition
) -> FindStream<Self, Condition> where
Self: Sized + Unpin,
Condition: Fn(&Self::Item) -> bool + Unpin,
[src]
self,
condition: Condition
) -> FindStream<Self, Condition> where
Self: Sized + Unpin,
Condition: Fn(&Self::Item) -> bool + Unpin,
pub fn log(self, level: Level) -> StreamLog<Self> where
Self: Sized,
Self::Item: Debug,
[src]
Self: Sized,
Self::Item: Debug,
Auto Trait Implementations
impl<T> RefUnwindSafe for Receiver<T>
[src]
impl<T> Send for Receiver<T> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> Sync for Receiver<T> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> Unpin for Receiver<T>
[src]
impl<T> UnwindSafe for Receiver<T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,