Struct rustls::Writer [−][src]
pub struct Writer<'a> { /* fields omitted */ }
Expand description
A structure that implements std::io::Write
for writing plaintext.
Trait Implementations
Send the plaintext buf
to the peer, encrypting
and authenticating it. Once this function succeeds
you should call CommonState::write_tls
which will output the
corresponding TLS records.
This function buffers plaintext sent before the
TLS handshake completes, and sends it as soon
as it can. See CommonState::set_buffer_limit
to control
the size of this buffer.
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more