pub struct NoopCanonicalLog { /* private fields */ }Expand description
A receiver that retains a service name and discards all events.
Implementations§
Source§impl NoopCanonicalLog
impl NoopCanonicalLog
Sourcepub fn new(service_name: ServiceName) -> Self
pub fn new(service_name: ServiceName) -> Self
Creates a discarding receiver with the supplied validated identity.
Sourcepub fn named_or_default(service: &'static str) -> Self
pub fn named_or_default(service: &'static str) -> Self
Uses a valid static service name, falling back to noop for invalid names.
The fixed fallback is validated by the exact types 1.5.0 dependency. ADR-RUN-0017 permits only this literal invariant; caller input is never unwrapped. Upstream capability cleanup removes this temporary exception.
Trait Implementations§
Source§impl CanonicalLog for NoopCanonicalLog
impl CanonicalLog for NoopCanonicalLog
Source§fn service_name(&self) -> &ServiceName
fn service_name(&self) -> &ServiceName
Returns the receiver’s service identity.
Source§impl Clone for NoopCanonicalLog
impl Clone for NoopCanonicalLog
Auto Trait Implementations§
impl Freeze for NoopCanonicalLog
impl RefUnwindSafe for NoopCanonicalLog
impl Send for NoopCanonicalLog
impl Sync for NoopCanonicalLog
impl Unpin for NoopCanonicalLog
impl UnsafeUnpin for NoopCanonicalLog
impl UnwindSafe for NoopCanonicalLog
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