Trait rustls::conn::PlaintextSink
source · pub(crate) trait PlaintextSink {
// Required methods
fn write(&mut self, buf: &[u8]) -> Result<usize>;
fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize>;
fn flush(&mut self) -> Result<()>;
}
Expand description
Internal trait implemented by the [ServerConnection
]/[ClientConnection
]
allowing them to be the subject of a Writer
.