pub enum LogError {
Io(Error),
Format(Error),
Config {
message: String,
},
FileOperation {
path: String,
reason: String,
},
InvalidLogLevel {
level: String,
},
InitializationError {
message: String,
},
Parse(ParseIntError),
Custom {
message: String,
},
}Expand description
日志库的主要错误类型
Variants§
Io(Error)
IO 错误
Format(Error)
格式化错误
Config
配置错误
FileOperation
文件操作错误
InvalidLogLevel
日志级别解析错误
InitializationError
初始化错误
Parse(ParseIntError)
解析错误
Custom
自定义错误
Implementations§
Trait Implementations§
Source§impl Error for LogError
impl Error for LogError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ParseIntError> for LogError
impl From<ParseIntError> for LogError
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LogError
impl !UnwindSafe for LogError
impl Freeze for LogError
impl Send for LogError
impl Sync for LogError
impl Unpin for LogError
impl UnsafeUnpin for LogError
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