Struct hyper::body::Sender [−][src]
pub struct Sender { /* fields omitted */ }
Expand description
A sender half created through Body::channel()
.
Useful when wanting to stream chunks from another thread.
Body Closing
Note that the request body will always be closed normally when the sender is dropped (meaning
that the empty terminating chunk will be sent to the remote). If you desire to close the
connection with an incomplete response (e.g. in the case of an error during asynchronous
processing), call the Sender::abort()
method to abort the body in an abnormal fashion.
Implementations
Check to see if this Sender
can send more data.
Send data on data channel when it is ready.
Send trailers on trailers channel.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Sender
impl !UnwindSafe for Sender
Blanket Implementations
Mutably borrows from an owned value. 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