pub enum CdError {
Io(Error),
Iso(IsoCreationError),
Udf(UdfError),
InvalidPath(String),
FileNotFound(String),
DirectoryNotFound(String),
VolumeNameTooLong {
name: String,
max: usize,
},
InvalidConfig(String),
}Expand description
Errors that can occur during CD/DVD image creation
Variants§
Io(Error)
I/O error
Iso(IsoCreationError)
ISO creation error
Udf(UdfError)
UDF error
InvalidPath(String)
Invalid file path
FileNotFound(String)
File not found in tree
DirectoryNotFound(String)
Directory not found in tree
VolumeNameTooLong
Volume name too long
InvalidConfig(String)
Invalid configuration
Trait Implementations§
Source§impl Error for CdError
impl Error for CdError
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<IsoCreationError> for CdError
impl From<IsoCreationError> for CdError
Source§fn from(source: IsoCreationError) -> Self
fn from(source: IsoCreationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CdError
impl !RefUnwindSafe for CdError
impl Send for CdError
impl Sync for CdError
impl Unpin for CdError
impl UnsafeUnpin for CdError
impl !UnwindSafe for CdError
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