pub struct BlazeStream<S> { /* private fields */ }
Expand description

Wrapping structure for wrapping Read + Write streams with a SSLv3 protocol wrapping.

Implementations

Get a reference to the underlying stream

Get a mutable reference to the underlying stream

Attempts to take the next message form the deframer or read a new message from the underlying stream if there is no parsable messages

Triggers a shutdown by sending a CloseNotify alert

Handle the alert message provided

Handle a fatal alert (Stop the connection and don’t attempt more reads/writes)

Fragments the provided message and encrypts the contents if encryption is available writing the output to the underlying stream

Writes an alert message and calls handle_alert with the alert

Fills the application data buffer if the buffer is empty by reading a message from the application layer

Function for async reading data into a buffer. Will read whatever data is available. This is a replacement as to not have to implemenet AsyncRead

Function for async reading data into a buffer. Will read the entire size of the buffer. This is a replacement as to not have to implemenet AsyncRead

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.

Should always be Self
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.