pub struct LOGGER { /* private fields */ }
Expand description
The slog Logger for the oxidebpf library. You can change the destination
by accessing the drain control with LOGGER.1.set(your_new_drain)
.
Trait Implementations
sourceimpl Deref for LOGGER
impl Deref for LOGGER
type Target = (Logger<Arc<dyn SendSyncRefUnwindSafeDrain<Err = NeverStruct, Ok = ()> + 'static>>, AtomicSwitchCtrl<(), NeverStruct>)
type Target = (Logger<Arc<dyn SendSyncRefUnwindSafeDrain<Err = NeverStruct, Ok = ()> + 'static>>, AtomicSwitchCtrl<(), NeverStruct>)
The resulting type after dereferencing.
sourcefn deref(&self) -> &(Logger, AtomicSwitchCtrl)
fn deref(&self) -> &(Logger, AtomicSwitchCtrl)
Dereferences the value.
impl LazyStatic for LOGGER
Auto Trait Implementations
impl RefUnwindSafe for LOGGER
impl Send for LOGGER
impl Sync for LOGGER
impl Unpin for LOGGER
impl UnwindSafe for LOGGER
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