Struct edjx::stream::WriteStream

source ·
pub struct WriteStream { /* private fields */ }
Expand description

The WriteStream is used to stream data.

Implementations§

Sends the given &str chunk into the stream

Sends the given Vec<u8> chunk into the steam

Aborts sending data and closes the stream.

This method abruptly ends the streaming.

Difference between WriteStream::close() and WriteStream::abort() when HTTP/1.1 is used for streaming:

Note that WriteStream::close() is not available after WriteStream::abort() is called.

Trait Implementations§

Get the stream descriptor of this stream
Cleanly close the stream
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.