pub enum USBNotecardLoadError {
Io(Error),
LocationParseError(LocationParseError),
}Expand description
Errors that can happen when an USB notecard is read from a file
Variants§
Io(Error)
I/O errors opening or reading the file
LocationParseError(LocationParseError)
Parse error deserializing the USB notecard lines
Implementations§
Source§impl USBNotecardLoadError
impl USBNotecardLoadError
Sourcepub const fn is_io(&self) -> bool
pub const fn is_io(&self) -> bool
Returns true if the enum is USBNotecardLoadError::Io otherwise false
Sourcepub const fn is_location_parse_error(&self) -> bool
pub const fn is_location_parse_error(&self) -> bool
Returns true if the enum is USBNotecardLoadError::LocationParseError otherwise false
Trait Implementations§
Source§impl Debug for USBNotecardLoadError
impl Debug for USBNotecardLoadError
Source§impl Display for USBNotecardLoadError
impl Display for USBNotecardLoadError
Source§impl Error for USBNotecardLoadError
impl Error for USBNotecardLoadError
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<Error> for USBNotecardLoadError
impl From<Error> for USBNotecardLoadError
Source§impl From<LocationParseError> for USBNotecardLoadError
impl From<LocationParseError> for USBNotecardLoadError
Source§fn from(source: LocationParseError) -> Self
fn from(source: LocationParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for USBNotecardLoadError
impl !RefUnwindSafe for USBNotecardLoadError
impl Send for USBNotecardLoadError
impl Sync for USBNotecardLoadError
impl Unpin for USBNotecardLoadError
impl !UnwindSafe for USBNotecardLoadError
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