#[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 Syslogwhere
*const u8 is !null: Freeze,
PhantomData<SyslogHost>: Freeze,
PhantomData<SyslogTarget>: Freeze,
PhantomData<SyslogRule>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Syslog
impl RefUnwindSafe for Syslog
impl Send for Syslogwhere
RawVecInner: Send,
impl Sync for Syslogwhere
RawVecInner: Sync,
impl Unpin for Syslog
impl UnsafeUnpin for Syslogwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<SyslogHost>: UnsafeUnpin,
PhantomData<SyslogTarget>: UnsafeUnpin,
PhantomData<SyslogRule>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Syslogwhere
RawVecInner: UnwindSafe,
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