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

struct State<T> {
    disconnected: bool,
    queue: Queue,
    blocker: Blocker,
    buf: Buffer<T>,
    cap: usize,
    canceled: Option<&'static mut bool>,
}

Fields

disconnected: boolqueue: Queueblocker: Blockerbuf: Buffer<T>cap: usizecanceled: Option<&'static mut bool>

A curious flag used to indicate whether a sender failed or succeeded in blocking. This is used to transmit information back to the thread that it must dequeue its message from the buffer because it was not received. This is only relevant in the 0-buffer case. This obviously cannot be safely constructed, but it’s guaranteed to always have a valid pointer value.

Trait Implementations

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.