pub struct Split<T>(/* private fields */);
Expand description
Splitting an I/O type into separate read and write halves
Implementations§
Trait Implementations§
Source§impl<T: AsyncRead + AsyncWrite> Splittable for Split<T>
impl<T: AsyncRead + AsyncWrite> Splittable for Split<T>
Source§type ReadHalf = ReadHalf<T>
type ReadHalf = ReadHalf<T>
The type of the read half, which normally implements
AsyncRead
or
AsyncReadAt
.Source§type WriteHalf = WriteHalf<T>
type WriteHalf = WriteHalf<T>
The type of the write half, which normally implements
AsyncWrite
or
AsyncWriteAt
.Auto Trait Implementations§
impl<T> Freeze for Split<T>
impl<T> !RefUnwindSafe for Split<T>
impl<T> Send for Split<T>where
T: Send,
impl<T> Sync for Split<T>where
T: Send,
impl<T> Unpin for Split<T>
impl<T> !UnwindSafe for Split<T>
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