pub struct NoOpTransport;Expand description
No-op transport for testing/disabled logging
Trait Implementations§
Source§impl TransportPort for NoOpTransport
impl TransportPort for NoOpTransport
Source§fn transport(&self, _entry: &LogEntry) -> ObservabilityResult<()>
fn transport(&self, _entry: &LogEntry) -> ObservabilityResult<()>
Transport a single log entry
Source§fn transport_batch(&self, entries: &[LogEntry]) -> ObservabilityResult<()>
fn transport_batch(&self, entries: &[LogEntry]) -> ObservabilityResult<()>
Transport multiple log entries (for batching)
Auto Trait Implementations§
impl Freeze for NoOpTransport
impl RefUnwindSafe for NoOpTransport
impl Send for NoOpTransport
impl Sync for NoOpTransport
impl Unpin for NoOpTransport
impl UnsafeUnpin for NoOpTransport
impl UnwindSafe for NoOpTransport
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