Trait SyslogDestMsg

Source
pub trait SyslogDestMsg:
    Debug
    + Display
    + Send
    + Clone
    + 'static {
    // Required method
    fn get_max_msg_len(&self) -> usize;
}
Expand description

A commin trait for both sync and async which implements methods that returns some specific values for each type of the destination.

Required Methods§

Source

fn get_max_msg_len(&self) -> usize

Should return the max message length for specific syslog server type.

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.

Implementors§