pub enum Error {
Show 15 variants
Io(Error),
InvalidVrs,
InvalidVds(&'static str),
InvalidFsd,
NoAnchor,
InvalidTag {
expected: u16,
found: u16,
},
CrcMismatch {
expected: u16,
computed: u16,
},
InvalidPartition(u16),
InvalidIcb,
NotFound,
NotADirectory,
NotAFile,
PathTooLong,
InvalidEncoding,
PodCastError(PodCastError),
}Expand description
Errors that can occur when reading or writing UDF filesystems
Variants§
Io(Error)
I/O error
InvalidVrs
Invalid or missing Volume Recognition Sequence
InvalidVds(&'static str)
Invalid or missing Volume Descriptor Sequence
InvalidFsd
Invalid or missing File Set Descriptor
NoAnchor
No Anchor Volume Descriptor Pointer found
InvalidTag
Invalid descriptor tag
Fields
CrcMismatch
Descriptor CRC mismatch
Fields
InvalidPartition(u16)
Invalid partition reference
InvalidIcb
Invalid ICB (Information Control Block)
NotFound
File not found
NotADirectory
Not a directory
NotAFile
Not a file
PathTooLong
Path too long
InvalidEncoding
Invalid filename encoding
PodCastError(PodCastError)
byte casting failed - the data buffer size doesn’t match the target struct size.
Trait Implementations§
Source§impl Error for Error
Available on crate feature std only.
impl Error for Error
Available on crate feature
std only.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 Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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