pub struct Log { /* private fields */ }Expand description
This is an ephemeral object that implements the core::fmt::Write trait.
It’s used as write!(&zx_libc::sanitizer::Log::new(), "...", ...) to send
a single logging line. The object holds a fixed buffer that is used to
collect the multiple fragments from formatters; it’s written using
zx_libc::sanitizer::log() when the buffer fills or the object is dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnsafeUnpin for Log
impl UnwindSafe for Log
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