pub struct SharedObservationEvent { /* private fields */ }Expand description
Redacted, bounded observation payload shared across multiple sinks.
Construction reapplies the same validation as ObservationSink::emit,
so a sink may retain the immutable payload without copying its owned fields.
Implementations§
Sourcepub fn new(event: ObservationEvent) -> Self
pub fn new(event: ObservationEvent) -> Self
Redacts, bounds and shares one observation event.
Sourcepub fn as_event(&self) -> &ObservationEvent
pub fn as_event(&self) -> &ObservationEvent
Borrows the validated observation payload.
Trait Implementations§
Source§fn clone(&self) -> SharedObservationEvent
fn clone(&self) -> SharedObservationEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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