Struct gelf::NullBackend
source · pub struct NullBackend;
Expand description
The NullBackend
is a utility backend which discards all messages
Implementations
sourceimpl NullBackend
impl NullBackend
sourcepub fn new() -> NullBackend
pub fn new() -> NullBackend
Construct a new NullBackend
Trait Implementations
sourceimpl Backend for NullBackend
impl Backend for NullBackend
sourcefn log_message(&self, _: WireMessage<'_>) -> Result<()>
fn log_message(&self, _: WireMessage<'_>) -> Result<()>
Log a message.
Logging a message with NullBackend is a noop and will never fail.
Auto Trait Implementations
impl RefUnwindSafe for NullBackend
impl Send for NullBackend
impl Sync for NullBackend
impl Unpin for NullBackend
impl UnwindSafe for NullBackend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more