Struct ruspiro_channel::mpmc::Sender[][src]

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

Sender that is using a queue to push messages/data that a receiver could work on The sending part could be used by several cores in parallel to push stuff to the queue


impl<T: 'static> Sender<T>[src]

pub fn new(inner: Arc<Queue<T>>) -> Self[src]

pub fn send(&self, data: T)[src]

Trait Implementations

impl<T: 'static> Clone for Sender<T>[src]

Enable cloning the Sender so it can be used at different cores, filling up the same queue

Auto Trait Implementations

impl<T> Sync for Sender<T>

impl<T> Unpin for Sender<T>

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.