Struct fabruic::Sender [−][src]
pub struct Sender<T: Serialize> { /* fields omitted */ }
Expand description
Used to send data to a stream.
Implementations
Send data
into the stream.
Errors
error::Sender::Serialize
ifdata
failed to be serializederror::Sender::Write
if theSender
failed to to write to the streamerror::Sender::Closed
if theSender
is closed
Shut down the Send
part of the stream gracefully.
No new data may be written after calling this method. Completes when the peer has acknowledged all sent data, retransmitting data as needed.
Errors
This can only return error::Sender::Closed
as an Err
, if it was
already closed, but if the Sender
failed to write to the stream it
will return a queued error::Sender::Write
.
Close the Sender
immediately.
To close a Sender
gracefully use Sender::finish
.
Errors
This can only return error::Sender::Closed
as an Err
, if it was
already closed, but if the Sender
failed to write to the stream it
will return a queued error::Sender::Write
.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Sender<T>
impl<T> !UnwindSafe for Sender<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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