pub struct LogStream(/* private fields */);Expand description
Receiver for the device LOG stream.
Implementations§
Source§impl LogStream
impl LogStream
Sourcepub fn try_recv(&self) -> Option<LogLine>
pub fn try_recv(&self) -> Option<LogLine>
Next buffered LOG line, or None if none is queued. Never blocks.
Sourcepub fn recv_timeout(&self, timeout: Duration) -> Option<LogLine>
pub fn recv_timeout(&self, timeout: Duration) -> Option<LogLine>
Block up to timeout for the next LOG line; None on timeout or a closed channel.
Sourcepub fn try_iter(&self) -> impl Iterator<Item = LogLine> + '_
pub fn try_iter(&self) -> impl Iterator<Item = LogLine> + '_
Drain buffered LOG lines without blocking.
Sourcepub async fn recv_async(&self) -> Result<LogLine>
pub async fn recv_async(&self) -> Result<LogLine>
Await the next LOG line; runtime-agnostic (same flume channel as the sync methods).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogStream
impl RefUnwindSafe for LogStream
impl Send for LogStream
impl Sync for LogStream
impl Unpin for LogStream
impl UnsafeUnpin for LogStream
impl UnwindSafe for LogStream
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