Struct stdio::StdioWriter
source · pub struct StdioWriter { /* private fields */ }
Expand description
A writer to stdio buffers.
Implementations§
source§impl StdioWriter
impl StdioWriter
sourcepub fn lock(&self) -> StdioWriteGuard<'_>
pub fn lock(&self) -> StdioWriteGuard<'_>
Lock the writer and return a guard that can perform writing operation to that buffer. Note that this lock does not lock the underlying ring buffer. It only excludes other writer from performing simultaneous write, but does not prevent a reader to perform reading to the underlying ring buffer.
Trait Implementations§
source§impl Clone for StdioWriter
impl Clone for StdioWriter
source§fn clone(&self) -> StdioWriter
fn clone(&self) -> StdioWriter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StdioWriter
impl Send for StdioWriter
impl Sync for StdioWriter
impl Unpin for StdioWriter
impl !UnwindSafe for StdioWriter
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