Struct glommio::channels::shared_channel::SharedSender [−][src]
Expand description
The SharedSender
is the sending 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 ConnectedSender
, 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 sender, returning a ConnectedSender
that can be used
to send data into this channel
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for SharedSender<T>
impl<T> !Sync for SharedSender<T>
impl<T> Unpin for SharedSender<T>
impl<T> !UnwindSafe for SharedSender<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