pub struct FileObservationSink { /* private fields */ }Expand description
Cloneable non-blocking observation sink backed by a bounded worker queue.
Implementations§
Source§impl FileObservationSink
impl FileObservationSink
Sourcepub fn new(config: FileObservationSinkConfig) -> Result<Self>
pub fn new(config: FileObservationSinkConfig) -> Result<Self>
Creates the active file and starts the bounded writer worker.
Sourcepub fn stats(&self) -> FileObservationSinkStats
pub fn stats(&self) -> FileObservationSinkStats
Returns worker, backpressure and failure counters.
Trait Implementations§
Source§impl Clone for FileObservationSink
impl Clone for FileObservationSink
Source§fn clone(&self) -> FileObservationSink
fn clone(&self) -> FileObservationSink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileObservationSink
impl Debug for FileObservationSink
Source§impl ObservationSink for FileObservationSink
impl ObservationSink for FileObservationSink
Source§fn emit(&self, event: ObservationEvent)
fn emit(&self, event: ObservationEvent)
Emits one event without blocking on external tooling.
Auto Trait Implementations§
impl !RefUnwindSafe for FileObservationSink
impl !UnwindSafe for FileObservationSink
impl Freeze for FileObservationSink
impl Send for FileObservationSink
impl Sync for FileObservationSink
impl Unpin for FileObservationSink
impl UnsafeUnpin for FileObservationSink
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