Struct glommio::channels::shared_channel::SharedReceiver [−][src]
Expand description
The SharedReceiver
is the receiving end of the Shared Channel.
It implements Send
so it can be passed to any thread. However
it doesn’t implement any method: before it is used it must be changed
into a ConnectedReceiver
, which then makes sure it will be used by
at most one thread.
It is technically possible to share this among multiple threads inside a lock, although such design is discouraged and beats the purpose of a spsc channel.
Implementations
Connects this receiver, returning a ConnectedReceiver
that can be
used to send data into this channel
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for SharedReceiver<T>
impl<T> !Sync for SharedReceiver<T>
impl<T> Unpin for SharedReceiver<T>
impl<T> !UnwindSafe for SharedReceiver<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