[][src]Struct nature::channels::Channel

pub struct Channel<T> {
    pub sender: Mutex<Sender<T>>,
    pub receiver: Mutex<Receiver<T>>,
}

Fields

sender: Mutex<Sender<T>>receiver: Mutex<Receiver<T>>

Implementations

impl<T> Channel<T>[src]

pub fn new() -> Channel<T>[src]

Trait Implementations

impl<T> Default for Channel<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Channel<T>

impl<T> Send for Channel<T> where
    T: Send

impl<T> Sync for Channel<T> where
    T: Send

impl<T> Unpin for Channel<T>

impl<T> UnwindSafe for Channel<T>

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> Same<T> for T

type Output = T

Should always be Self

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,