pub struct OwnedRecord {
pub timestamp: Timestamp,
pub metadata_id: u32,
pub name: &'static str,
pub target: &'static str,
pub level: Level,
pub fields: OwnedFields,
pub current_span: Option<SpanSnapshot>,
pub spans: SmallVec<[SpanSnapshot; 4]>,
}Expand description
Owned event record ready for encoding.
Fields§
§timestamp: Timestamp§metadata_id: u32§name: &'static str§target: &'static str§level: Level§fields: OwnedFields§current_span: Option<SpanSnapshot>§spans: SmallVec<[SpanSnapshot; 4]>Implementations§
Source§impl OwnedRecord
impl OwnedRecord
Sourcepub fn from_event(
timestamp: Timestamp,
metadata_id: u32,
event: &Event<'_>,
current_span: Option<SpanSnapshot>,
spans: SmallVec<[SpanSnapshot; 4]>,
) -> Self
pub fn from_event( timestamp: Timestamp, metadata_id: u32, event: &Event<'_>, current_span: Option<SpanSnapshot>, spans: SmallVec<[SpanSnapshot; 4]>, ) -> Self
Captures an event into an owned record.
Trait Implementations§
Source§impl Clone for OwnedRecord
impl Clone for OwnedRecord
Source§fn clone(&self) -> OwnedRecord
fn clone(&self) -> OwnedRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OwnedRecord
impl Debug for OwnedRecord
Source§impl PartialEq for OwnedRecord
impl PartialEq for OwnedRecord
impl StructuralPartialEq for OwnedRecord
Auto Trait Implementations§
impl Freeze for OwnedRecord
impl RefUnwindSafe for OwnedRecord
impl Send for OwnedRecord
impl Sync for OwnedRecord
impl Unpin for OwnedRecord
impl UnsafeUnpin for OwnedRecord
impl UnwindSafe for OwnedRecord
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