Trait Rfc5424Data

Source
pub trait Rfc5424Data {
    // Required methods
    fn severity(&self) -> Severity;
    fn timestamp(&self) -> Option<String>;
    fn structured_data(&self) -> Option<StructuredData<'_>>;
    fn message(&self) -> Option<Message>;
}
Expand description

Trait that defines what data is needed in order to create a RFC5424 message. Any type that implements this can be formatted with a Rfc5424 struct.

Required Methods§

Implementors§