pub enum MuninError {
Io(Error),
InvalidFormat(String),
UnsupportedVersion {
file_version: i32,
min_reader_version: i32,
},
InvalidIndex {
kind: &'static str,
index: i32,
},
OverlongVarInt,
InvalidUtf8,
}Expand description
Errors that can occur when reading or decoding a binlog file.
Variants§
Io(Error)
An I/O error occurred while reading the stream.
InvalidFormat(String)
The file does not appear to be a valid binlog (bad magic, truncated header, etc.).
UnsupportedVersion
The binlog’s format version is not supported by this reader.
InvalidIndex
A record references a string or name-value-list index that has not been seen.
OverlongVarInt
A 7-bit encoded integer exceeded the maximum allowed byte count.
InvalidUtf8
A string record contains invalid UTF-8.
Trait Implementations§
Source§impl Debug for MuninError
impl Debug for MuninError
Source§impl Display for MuninError
impl Display for MuninError
Source§impl Error for MuninError
impl Error for MuninError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for MuninError
impl !UnwindSafe for MuninError
impl Freeze for MuninError
impl Send for MuninError
impl Sync for MuninError
impl Unpin for MuninError
impl UnsafeUnpin for MuninError
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