pub struct Duplex { /* private fields */ }
Expand description
An AsyncRead + AsyncWrite stream, which reads from one ringbuffer, and writes to another.
Implementations§
Trait Implementations§
Source§impl AsyncRead for Duplex
impl AsyncRead for Duplex
Source§impl AsyncWrite for Duplex
impl AsyncWrite for Duplex
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the object. Read moreSource§fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more
Auto Trait Implementations§
impl Freeze for Duplex
impl !RefUnwindSafe for Duplex
impl !Send for Duplex
impl !Sync for Duplex
impl Unpin for Duplex
impl !UnwindSafe for Duplex
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