Trait diagnostics_log_encoding::encode::RecordEvent
source · pub trait RecordEvent {
// Required methods
fn severity(&self) -> u8;
fn file(&self) -> Option<&str>;
fn line(&self) -> Option<u32>;
fn target(&self) -> &str;
fn write_arguments<B: MutableBuffer>(
self,
writer: &mut Encoder<B>
) -> Result<(), EncodingError>;
fn timestamp(&self) -> Time;
}
Expand description
Trait implemented by types which can be written by the Encoder.
Required Methods§
sourcefn line(&self) -> Option<u32>
fn line(&self) -> Option<u32>
Returns the number of the line in the file where the record was emitted.
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.
Object Safety§
This trait is not object safe.