pub enum SyslogErrCode {
OsError(ErrorKind),
OsErrorErrno(Errno),
InternalError,
SyslogThreadNotAvailable,
UnboundedChannelError,
MutexPoisoned,
Unusable,
SendError,
NotAvail,
}
Expand description
Error code
Variants§
OsError(ErrorKind)
Os Error
OsErrorErrno(Errno)
Os Error
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
Unusable
The function is not usable.
SendError
Channel errors during transmission.
NotAvail
Functionality os not available.
Implementations§
Source§impl SyslogErrCode
impl SyslogErrCode
pub fn get_os_err_code(&self) -> Option<ErrorKind>
Trait Implementations§
Source§impl Clone for SyslogErrCode
impl Clone for SyslogErrCode
Source§fn clone(&self) -> SyslogErrCode
fn clone(&self) -> SyslogErrCode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SyslogErrCode
impl Debug for SyslogErrCode
Source§impl Display for SyslogErrCode
impl Display for SyslogErrCode
Source§impl PartialEq for SyslogErrCode
impl PartialEq for SyslogErrCode
impl Copy for SyslogErrCode
impl Eq for SyslogErrCode
impl StructuralPartialEq for SyslogErrCode
Auto Trait Implementations§
impl Freeze for SyslogErrCode
impl RefUnwindSafe for SyslogErrCode
impl Send for SyslogErrCode
impl Sync for SyslogErrCode
impl Unpin for SyslogErrCode
impl UnwindSafe for SyslogErrCode
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