pub struct FromTokio<T>where
T: ?Sized,{ /* private fields */ }
Expand description
Adapter from tokio::io
traits.
Implementations§
Source§impl<T> FromTokio<T>
impl<T> FromTokio<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume the adapter, returning the inner object.
Trait Implementations§
Source§impl<T> BufRead for FromTokio<T>
impl<T> BufRead for FromTokio<T>
Source§impl<T> Read for FromTokio<T>
impl<T> Read for FromTokio<T>
Source§async fn read(
&mut self,
buf: &mut [u8],
) -> Result<usize, <FromTokio<T> as ErrorType>::Error>
async fn read( &mut self, buf: &mut [u8], ) -> Result<usize, <FromTokio<T> as ErrorType>::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf
. Read moreSource§impl<T> Seek for FromTokio<T>
impl<T> Seek for FromTokio<T>
Source§impl<T> Write for FromTokio<T>
impl<T> Write for FromTokio<T>
Source§async fn write(
&mut self,
buf: &[u8],
) -> Result<usize, <FromTokio<T> as ErrorType>::Error>
async fn write( &mut self, buf: &[u8], ) -> Result<usize, <FromTokio<T> as ErrorType>::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Auto Trait Implementations§
impl<T> Freeze for FromTokio<T>
impl<T> RefUnwindSafe for FromTokio<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for FromTokio<T>
impl<T> Sync for FromTokio<T>
impl<T> Unpin for FromTokio<T>
impl<T> UnwindSafe for FromTokio<T>where
T: UnwindSafe + ?Sized,
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