pub enum MdfError {
Show 17 variants
FileOpen(String),
HeaderRead,
MeasurementInfo,
DataRead,
MeasurementInit,
MeasurementFinalize,
InvalidFormat,
NullPointer,
IndexOutOfBounds(usize),
InvalidChannelType(u8),
InvalidDataType(u8),
BufferTooSmall {
needed: usize,
actual: usize,
},
Utf8Error(Utf8Error),
StringConversion(NulError),
Io(Error),
CStringConversion(IntoStringError),
CallbackError(String),
}Expand description
Error types that can occur when working with MDF files
Variants§
FileOpen(String)
Error opening a file
HeaderRead
Error reading the header
MeasurementInfo
Error reading measurement info
DataRead
Error reading data
MeasurementInit
Error initializing a measurement
MeasurementFinalize
Error finalizing a measurement
InvalidFormat
Invalid file format
NullPointer
Null pointer encountered
IndexOutOfBounds(usize)
Index out of bounds
InvalidChannelType(u8)
Invalid channel type
InvalidDataType(u8)
Invalid data type
BufferTooSmall
Buffer too small
Utf8Error(Utf8Error)
UTF-8 conversion error
StringConversion(NulError)
String conversion error
Io(Error)
IO error
CStringConversion(IntoStringError)
CString conversion error
CallbackError(String)
Callback error
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()
Source§impl From<IntoStringError> for MdfError
impl From<IntoStringError> for MdfError
Source§fn from(source: IntoStringError) -> Self
fn from(source: IntoStringError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MdfError
impl !RefUnwindSafe for MdfError
impl Send for MdfError
impl Sync for MdfError
impl Unpin for MdfError
impl UnsafeUnpin for MdfError
impl !UnwindSafe 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