pub enum MdfError {
ChannelNotFound {
name: String,
group: Option<String>,
},
InvalidArgument(String),
TooShortBuffer {
actual: usize,
expected: usize,
file: &'static str,
line: u32,
},
FileIdentifierError(String),
FileVersioningError(String),
BlockIDError {
actual: String,
expected: String,
},
IOError(Error),
InvalidVersionString(String),
BlockLinkError(String),
BlockSerializationError(String),
ConversionChainTooDeep {
max_depth: usize,
},
ConversionChainCycle {
address: u64,
},
}Variants§
ChannelNotFound
No channel with that name (optionally: in that group) exists.
Raised by every data operation (read, values, time_range,
conversion, byte_ranges). Metadata lookups (group, channel)
return None instead.
InvalidArgument(String)
A ReadOptions value (or another argument) is not usable.
TooShortBuffer
FileIdentifierError(String)
FileVersioningError(String)
BlockIDError
IOError(Error)
InvalidVersionString(String)
BlockLinkError(String)
BlockSerializationError(String)
ConversionChainTooDeep
ConversionChainCycle
Implementations§
Source§impl MdfError
impl MdfError
Sourcepub fn channel_not_found(name: &str, group: Option<&str>) -> Self
pub fn channel_not_found(name: &str, group: Option<&str>) -> Self
Build a MdfError::ChannelNotFound.
Trait Implementations§
Source§impl Error for MdfError
impl Error for MdfError
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 MdfError
impl !UnwindSafe for MdfError
impl Forget for MdfError
impl Freeze for MdfError
impl Move for MdfError
impl Send for MdfError
impl Sync for MdfError
impl Unpin for MdfError
impl UnsafeUnpin for MdfError
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