pub enum TdmsError {
Show 26 variants
UnknownDataType(u32),
IndexReaderError(Box<dyn Error + Send + Sync + 'static>),
MissingObject(String),
IoError(Error),
StringFormatError(FromUtf8Error),
UnknownPropertyType(u32),
UnsupportedType(DataType),
HeaderPatternNotMatched([u8; 4]),
DataBlockNotFound(ChannelPath, usize),
BadDataBlockLength(usize, usize),
DataTypeMismatch(DataType, DataType),
EndOfFile,
SegmentAddressOverflow,
SegmentTocDataBlockWithoutDataChannels,
InvalidObjectPath(String),
InvalidChannelPath(String),
NoChannels,
VecAllocationFailed,
StringAllocationFailed,
PropertyTableAllocationFailed,
ZeroLengthDataBlock,
NoActiveChannelsInDataBlock,
NoPreviousType,
InvalidRawOffset,
ChunkSizeOverflow,
DaqmxChannelsNotSupported,
}Variants§
UnknownDataType(u32)
IndexReaderError(Box<dyn Error + Send + Sync + 'static>)
MissingObject(String)
IoError(Error)
StringFormatError(FromUtf8Error)
UnknownPropertyType(u32)
UnsupportedType(DataType)
HeaderPatternNotMatched([u8; 4])
DataBlockNotFound(ChannelPath, usize)
BadDataBlockLength(usize, usize)
DataTypeMismatch(DataType, DataType)
EndOfFile
SegmentAddressOverflow
SegmentTocDataBlockWithoutDataChannels
InvalidObjectPath(String)
InvalidChannelPath(String)
NoChannels
VecAllocationFailed
StringAllocationFailed
PropertyTableAllocationFailed
ZeroLengthDataBlock
NoActiveChannelsInDataBlock
NoPreviousType
InvalidRawOffset
ChunkSizeOverflow
DaqmxChannelsNotSupported
Trait Implementations§
Source§impl Error for TdmsError
impl Error for TdmsError
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<FromUtf8Error> for TdmsError
impl From<FromUtf8Error> for TdmsError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TdmsError
impl !RefUnwindSafe for TdmsError
impl Send for TdmsError
impl Sync for TdmsError
impl Unpin for TdmsError
impl !UnwindSafe for TdmsError
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