pub type TakeReceiver = Mutex<Option<Receiver<(Vec<u8>, ResponseChannel<Response>)>>>;
Expand description

Locked Option of a receiver for moving the value out of the option. This type takes any Response type depending on the underlying network impl.

Aliased Type§

struct TakeReceiver {
    state: AtomicUsize,
    lock_ops: Event,
    data: UnsafeCell<Option<Receiver<(Vec<u8>, ResponseChannel<Response>)>>>,
}

Fields§

§state: AtomicUsize§lock_ops: Event§data: UnsafeCell<Option<Receiver<(Vec<u8>, ResponseChannel<Response>)>>>