Struct glommio::channels::spsc_queue::Consumer [−][src]
pub struct Consumer<T> { /* fields omitted */ }
Expand description
A handle to the queue which allows consuming values from the buffer
Implementations
Disconnects the consumer, signaling to the producer that no new values are going to be consumed. After this is done, any attempt on the producer to try_push should fail
Returns the buffer status before the disconnect
Whether the associated producer is disconnected.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Consumer<T>
impl<T> !UnwindSafe for Consumer<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more