Struct std::sync::mpsc::sync::Packet[][src]

pub struct Packet<T> {
    channels: AtomicUsize,
    lock: Mutex<State<T>>,
}

Fields

channels: AtomicUsize

Only field outside of the mutex. Just done for kicks, but mainly because the other shared channel already had the code implemented

lock: Mutex<State<T>>

Implementations

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.