[][src]Struct postage::broadcast::Sender

pub struct Sender<T> { /* fields omitted */ }

A broadcast sender that can be used with the postage::Sink trait. Can be cloned.

The sender task is suspended when the internal buffer is filled.

Implementations

impl<T> Sender<T>[src]

pub fn subscribe(&self) -> Receiver<T>[src]

Subscribes to the channel, creating a new receiver. The receiver will observe all messages sent after the call to subscribe.

Messages currently in the buffer are not received.

Trait Implementations

impl<T> Clone for Sender<T>[src]

impl<T> Sink for Sender<T> where
    T: Clone
[src]

type Item = T

Auto Trait Implementations

impl<T> RefUnwindSafe for Sender<T>[src]

impl<T> Send for Sender<T> where
    T: Send + Sync
[src]

impl<T> Sync for Sender<T> where
    T: Send + Sync
[src]

impl<T> Unpin for Sender<T>[src]

impl<T> UnwindSafe for Sender<T>[src]

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.