#[non_exhaustive]pub struct Syslog {
pub hosts: Vec<SyslogHost>,
pub files: Vec<SyslogTarget>,
pub users: Vec<SyslogTarget>,
pub console: Vec<SyslogRule>,
pub source_address: Option<String>,
pub time_format: Option<String>,
pub archive: Option<SyslogArchive>,
pub allow_duplicates: bool,
pub log_rotate_frequency: Option<String>,
}Expand description
The system syslog configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hosts: Vec<SyslogHost>§files: Vec<SyslogTarget>§users: Vec<SyslogTarget>§console: Vec<SyslogRule>§source_address: Option<String>§time_format: Option<String>e.g. "year millisecond".
archive: Option<SyslogArchive>The default archive settings that files inherit.
allow_duplicates: bool§log_rotate_frequency: Option<String>Trait Implementations§
impl Eq for Syslog
impl StructuralPartialEq for Syslog
Auto Trait Implementations§
impl Forget for Syslog
impl Freeze for Syslog
impl Move for Syslog
impl RefUnwindSafe for Syslog
impl Send for Syslog
impl Sync for Syslog
impl Unpin for Syslog
impl UnsafeUnpin for Syslog
impl UnwindSafe for Syslog
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more