pub struct NoOpBackend;Expand description
No-op telemetry backend for testing.
Trait Implementations§
Source§impl Debug for NoOpBackend
impl Debug for NoOpBackend
Source§impl Default for NoOpBackend
impl Default for NoOpBackend
Source§fn default() -> NoOpBackend
fn default() -> NoOpBackend
Returns the “default value” for a type. Read more
Source§impl TelemetryBackend for NoOpBackend
impl TelemetryBackend for NoOpBackend
Source§fn emit_snapshot(&mut self, _snapshot: &MemorySnapshot)
fn emit_snapshot(&mut self, _snapshot: &MemorySnapshot)
Emit a memory snapshot to the telemetry system.
Source§fn emit_warning(&mut self, _message: &str)
fn emit_warning(&mut self, _message: &str)
Emit a warning when memory usage approaches threshold.
Auto Trait Implementations§
impl Freeze for NoOpBackend
impl RefUnwindSafe for NoOpBackend
impl Send for NoOpBackend
impl Sync for NoOpBackend
impl Unpin for NoOpBackend
impl UnsafeUnpin for NoOpBackend
impl UnwindSafe for NoOpBackend
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more