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§
Sourcefn raw_severity(&self) -> RawSeverity
fn raw_severity(&self) -> RawSeverity
Returns the record severity.
Sourcefn timestamp(&self) -> BootInstant
fn timestamp(&self) -> BootInstant
Returns the timestamp associated to this record.
Sourcefn write_arguments<B: MutableBuffer>(
self,
writer: &mut Encoder<B>,
) -> Result<(), EncodingError>
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", so this trait is not object safe.