pub enum UdfError {
Show 16 variants
Io(Error),
InvalidVrs,
InvalidVds(&'static str),
InvalidFsd,
NoAnchor,
InvalidTag {
expected: u16,
found: u16,
},
CrcMismatch {
expected: u16,
computed: u16,
},
UnsupportedRevision(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
CrcMismatch
Descriptor CRC mismatch
UnsupportedRevision(u16)
Unsupported UDF revision
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 UdfError
Available on crate feature std only.
impl Error for UdfError
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 !RefUnwindSafe for UdfError
impl !UnwindSafe for UdfError
impl Freeze for UdfError
impl Send for UdfError
impl Sync for UdfError
impl Unpin for UdfError
impl UnsafeUnpin for UdfError
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