[][src]Struct published_value::Publisher

pub struct Publisher<T>(_);

Publisher publishes an immutable value to waiters.

Methods

impl<T> Publisher<T>[src]

pub fn publish(self, value: T)[src]

Publishes the provided value to waiters. Once published, waiters will have access to an immutable reference of the provided value.

Trait Implementations

impl<T: Debug> Debug for Publisher<T>[src]

Auto Trait Implementations

impl<T> Send for Publisher<T> where
    T: Send + Sync

impl<T> Sync for Publisher<T> where
    T: Send + Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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