#[non_exhaustive]pub struct SyslogHost {Show 13 fields
pub address: String,
pub rules: Vec<SyslogRule>,
pub port: Option<String>,
pub source_address: Option<String>,
pub routing_instance: Option<String>,
pub facility_override: Option<String>,
pub log_prefix: Option<String>,
pub allow_duplicates: bool,
pub explicit_priority: bool,
pub exclude_hostname: bool,
pub match_regex: Option<String>,
pub match_strings: Vec<String>,
pub transport: Option<String>,
}Expand description
A host <address> destination.
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.address: StringAddress, hostname, or other-routing-engine.
rules: Vec<SyslogRule>§port: Option<String>§source_address: Option<String>§routing_instance: Option<String>§facility_override: Option<String>§log_prefix: Option<String>§allow_duplicates: bool§explicit_priority: bool§exclude_hostname: bool§match_regex: Option<String>The regular expression from match.
match_strings: Vec<String>The substrings from match-strings; a message is logged if it contains any of them.
transport: Option<String>tcp, tls or udp.
Trait Implementations§
Source§impl Clone for SyslogHost
impl Clone for SyslogHost
Source§impl Debug for SyslogHost
impl Debug for SyslogHost
impl Eq for SyslogHost
Source§impl PartialEq for SyslogHost
impl PartialEq for SyslogHost
impl StructuralPartialEq for SyslogHost
Auto Trait Implementations§
impl Forget for SyslogHost
impl Freeze for SyslogHostwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SyslogRule>: Freeze,
PhantomData<String>: Freeze,
impl Move for SyslogHost
impl RefUnwindSafe for SyslogHost
impl Send for SyslogHostwhere
RawVecInner: Send,
impl Sync for SyslogHostwhere
RawVecInner: Sync,
impl Unpin for SyslogHost
impl UnsafeUnpin for SyslogHostwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SyslogRule>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SyslogHostwhere
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