pub struct ProtocolWriter<W> { /* private fields */ }Expand description
Manages a buffer to automatically encrypt and send contents in packets.
Implementations§
Source§impl<W> ProtocolWriter<W>where
W: Write,
impl<W> ProtocolWriter<W>where
W: Write,
Sourcepub fn into_inner(self) -> (OutboundCipher, W)
pub fn into_inner(self) -> (OutboundCipher, W)
Consume the protocol writer in exchange for the underlying writer and cipher.
Auto Trait Implementations§
impl<W> Freeze for ProtocolWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for ProtocolWriter<W>where
W: RefUnwindSafe,
impl<W> Send for ProtocolWriter<W>where
W: Send,
impl<W> Sync for ProtocolWriter<W>where
W: Sync,
impl<W> Unpin for ProtocolWriter<W>where
W: Unpin,
impl<W> UnwindSafe for ProtocolWriter<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more