Skip to main content

RecordFields

Trait RecordFields 

Source
pub trait RecordFields {
    // Required methods
    fn raw_severity(&self) -> RawSeverity;
    fn timestamp(&self) -> BootInstant;
    fn write_arguments<B: MutableBuffer>(
        self,
        writer: &mut Encoder<B>,
    ) -> Result<(), EncodingError>;
}
Expand description

Trait implemented by complete Records.

Required Methods§

Source

fn raw_severity(&self) -> RawSeverity

Returns the record severity.

Source

fn timestamp(&self) -> BootInstant

Returns the timestamp associated to this record.

Source

fn write_arguments<B: MutableBuffer>( self, writer: &mut Encoder<B>, ) -> Result<(), EncodingError>

Consumes this type and writes all the arguments.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§