Struct cluExtIO::GuardWrite
source · pub struct GuardWrite<'a, T: 'a + Write>(_);
Implementations
sourceimpl<'a, T: Write> GuardWrite<'a, T>
impl<'a, T: Write> GuardWrite<'a, T>
pub fn guard(t: MutexGuard<'a, T>) -> Self
Trait Implementations
sourceimpl<'a, T: Debug + 'a + Write> Debug for GuardWrite<'a, T>
impl<'a, T: Debug + 'a + Write> Debug for GuardWrite<'a, T>
sourceimpl<'a, T: Write> From<MutexGuard<'a, T>> for GuardWrite<'a, T>
impl<'a, T: Write> From<MutexGuard<'a, T>> for GuardWrite<'a, T>
sourcefn from(a: MutexGuard<'a, T>) -> Self
fn from(a: MutexGuard<'a, T>) -> Self
Converts to this type from the input type.
sourceimpl<'a, T: Write> Write for GuardWrite<'a, T>
impl<'a, T: Write> Write for GuardWrite<'a, T>
sourcefn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written. Read more
sourcefn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
sourcefn 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
sourcefn 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
sourcefn 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> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more