Enum logcontrol::LogControl1Error
source · pub enum LogControl1Error {
UnsupportedLogLevel(LogLevel),
UnsupportedLogTarget(String),
InputOutputError(Error),
Failure(String),
}
Expand description
An error in a LogControl1
operation.
Variants§
UnsupportedLogLevel(LogLevel)
A log level is not supported by the underlying log framework.
UnsupportedLogTarget(String)
A log target is not supported by the underlying log framework.
InputOutputError(Error)
An IO error occurred while changing log target or log level.
Failure(String)
A generic failure while changing log target or log level.
Trait Implementations§
source§impl Debug for LogControl1Error
impl Debug for LogControl1Error
source§impl Display for LogControl1Error
impl Display for LogControl1Error
source§impl Error for LogControl1Error
impl Error for LogControl1Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for LogControl1Error
impl From<Error> for LogControl1Error
source§impl From<LogTargetParseError> for LogControl1Error
impl From<LogTargetParseError> for LogControl1Error
source§fn from(value: LogTargetParseError) -> Self
fn from(value: LogTargetParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LogControl1Error
impl Send for LogControl1Error
impl Sync for LogControl1Error
impl Unpin for LogControl1Error
impl !UnwindSafe for LogControl1Error
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