pub struct Std<T>(pub T);Available on crate feature
std only.Expand description
Wrapper IO type for std::io::Read and std::io::Write.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T> Container for Std<T>
impl<T> Container for Std<T>
Source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Construct a
Self from the inner type.Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Destruct the container into its inner type.
Source§impl<T> IntoWrite<Std<T>> for Twhere
T: Write,
impl<T> IntoWrite<Std<T>> for Twhere
T: Write,
Source§fn into_write(self) -> Std<T>
fn into_write(self) -> Std<T>
Convert
self to a writer T.Auto Trait Implementations§
impl<T> Freeze for Std<T>where
T: Freeze,
impl<T> RefUnwindSafe for Std<T>where
T: RefUnwindSafe,
impl<T> Send for Std<T>where
T: Send,
impl<T> Sync for Std<T>where
T: Sync,
impl<T> Unpin for Std<T>where
T: Unpin,
impl<T> UnwindSafe for Std<T>where
T: 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
Source§impl<T> IntoWrite<Native<T>> for Twhere
T: Write,
impl<T> IntoWrite<Native<T>> for Twhere
T: Write,
Source§fn into_write(self) -> Native<T>
fn into_write(self) -> Native<T>
Convert
self to a writer T.Source§impl<T> ReadExt for T
impl<T> ReadExt for T
Source§impl<T> WriteExt for T
impl<T> WriteExt for T
Source§fn write_buf<B>(&mut self, buf: B) -> Result<(), Self::Error>where
B: Buf,
fn write_buf<B>(&mut self, buf: B) -> Result<(), Self::Error>where
B: Buf,
Write
buf to the writer advancing it appropriately.Source§fn write_buf_all<B>(&mut self, buf: B) -> Result<(), Self::Error>where
B: Buf,
fn write_buf_all<B>(&mut self, buf: B) -> Result<(), Self::Error>where
B: Buf,
Write
buf to the writer advancing it until all of it has been written. Read moreSource§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this writer ensuring all bytes reach their destination.
Source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Create a “by reference” adapter that takes the current instance of
Write
by mutable reference.Source§fn transaction(
self,
kind: WriteTransactionKind<'_>,
) -> WriteTransactionVariant<'_, Self>where
Self: Sized,
fn transaction(
self,
kind: WriteTransactionKind<'_>,
) -> WriteTransactionVariant<'_, Self>where
Self: Sized,
Available on crate feature
alloc only.Create a transaction that uses this writer. Read more