pub struct ConsoleLogSubscription { /* private fields */ }Expand description
Unique optional complete-record log subscription.
Implementations§
Source§impl ConsoleLogSubscription
impl ConsoleLogSubscription
Sourcepub fn write_output(&self, tag: u128, bytes: &[u8]) -> RuntimeResult
pub fn write_output(&self, tag: u128, bytes: &[u8]) -> RuntimeResult
Enqueues raw bytes alongside kernel records in publication order.
tag is opaque to the runtime and identifies the application stream and
its generation. Adjacent writes with the same tag may coalesce. This
operation allocates nothing and never sleeps; a full queue rejects the
entire write with WouldBlock and accounts it in dropped().
pub fn try_read(&self) -> Option<ConsoleLogRecord>
pub fn dropped(&self) -> ConsoleLogDropReport
pub fn wait_readable(&self) -> RuntimeResult
Auto Trait Implementations§
impl !RefUnwindSafe for ConsoleLogSubscription
impl !UnwindSafe for ConsoleLogSubscription
impl Freeze for ConsoleLogSubscription
impl Send for ConsoleLogSubscription
impl Sync for ConsoleLogSubscription
impl Unpin for ConsoleLogSubscription
impl UnsafeUnpin for ConsoleLogSubscription
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