Enum syslog_rs::error::SyslogErrCode
source · pub enum SyslogErrCode {
InternalError,
SyslogThreadNotAvailable,
UnboundedChannelError,
MutexPoisoned,
}Expand description
Error code
Variants§
InternalError
A message which can be output to stderr
SyslogThreadNotAvailable
Only for syslog_sync_queue.rs and returned only when syslog thread is stopped and someone is trying to do some operation
UnboundedChannelError
Only for syslog_sync_queue.rs and returned only when syslog thread is failed to send back data
MutexPoisoned
Mutex poisoned, can not contunue
Trait Implementations§
source§impl Clone for SyslogErrCode
impl Clone for SyslogErrCode
source§fn clone(&self) -> SyslogErrCode
fn clone(&self) -> SyslogErrCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SyslogErrCode
impl Debug for SyslogErrCode
source§impl PartialEq<SyslogErrCode> for SyslogErrCode
impl PartialEq<SyslogErrCode> for SyslogErrCode
source§fn eq(&self, other: &SyslogErrCode) -> bool
fn eq(&self, other: &SyslogErrCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.