pub struct GuardWrite<'a, T: 'a + Write>(/* private fields */);Implementations§
Source§impl<'a, T: Write> GuardWrite<'a, T>
impl<'a, T: Write> GuardWrite<'a, T>
pub fn guard(t: MutexGuard<'a, T>) -> Self
Trait Implementations§
Source§impl<'a, T: Write> From<MutexGuard<'a, T>> for GuardWrite<'a, T>
impl<'a, T: Write> From<MutexGuard<'a, T>> for GuardWrite<'a, T>
Source§fn from(a: MutexGuard<'a, T>) -> Self
fn from(a: MutexGuard<'a, T>) -> Self
Converts to this type from the input type.
Source§impl<'a, T: Write> Write for GuardWrite<'a, T>
impl<'a, T: Write> Write for GuardWrite<'a, T>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
Source§fn write_all(&mut self, buf: &[u8]) -> Result<()>
fn write_all(&mut self, buf: &[u8]) -> Result<()>
Attempts to write an entire buffer into this writer. Read more
Source§fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()>
fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()>
Writes a formatted string into this writer, returning any error
encountered. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector)Auto Trait Implementations§
impl<'a, T> Freeze for GuardWrite<'a, T>
impl<'a, T> RefUnwindSafe for GuardWrite<'a, T>
impl<'a, T> !Send for GuardWrite<'a, T>
impl<'a, T> Sync for GuardWrite<'a, T>where
T: Sync,
impl<'a, T> Unpin for GuardWrite<'a, T>
impl<'a, T> UnwindSafe for GuardWrite<'a, 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