pub struct LogSubscription { /* private fields */ }Expand description
Owns a single filtered log subscription. Dropping it stops accepting records, discards queued records and wakes an idle callback thread without waiting for an already-running callback. This handle may be shared or moved across threads.
Callbacks run sequentially on a dedicated thread. They may query the SDK, replace/unsubscribe listeners or panic without blocking network workers. Logs synchronously produced on the callback thread are suppressed to prevent loops. Work explicitly spawned by a callback must avoid creating its own log loop.
Implementations§
Source§impl LogSubscription
impl LogSubscription
Sourcepub fn dropped_count(&self) -> u64
pub fn dropped_count(&self) -> u64
Total records discarded because this subscription’s queue was full.
Trait Implementations§
Source§impl Drop for LogSubscription
impl Drop for LogSubscription
Auto Trait Implementations§
impl Freeze for LogSubscription
impl RefUnwindSafe for LogSubscription
impl Send for LogSubscription
impl Sync for LogSubscription
impl Unpin for LogSubscription
impl UnsafeUnpin for LogSubscription
impl UnwindSafe for LogSubscription
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