Enum documents::DocumentError
source · pub enum DocumentError {
Show 13 variants
UserDirsNotFound,
PicturesDirNotFound,
VideosDirNotFound,
DownloadsDirNotFound,
DocumentsDirNotFound,
ProjectDirsNotFound,
FileNotFound(String),
CouldNotCreateFile(String),
CouldNotCreateParentFolder(String),
CouldNotLaunchFile(String),
CouldNotOpenFile(String),
FileNotWritable(String),
FileNotOpen(String),
}
Expand description
This library’s error types.
Note: functions in this library will not actually return this concrete error type.
Instead a Box
Variants§
UserDirsNotFound
“User directories not found”
PicturesDirNotFound
“Pictures directory not found”
VideosDirNotFound
“Videos directory not found”
DownloadsDirNotFound
“Downloads directory not found”
DocumentsDirNotFound
“Documents directory not found”
ProjectDirsNotFound
“Project directories not found”
FileNotFound(String)
“File not found: (file path)”
CouldNotCreateFile(String)
“Could not create file: (file path)”
CouldNotCreateParentFolder(String)
“Could not create parent folder: (parent directory path)”
CouldNotLaunchFile(String)
“Could not launch file with default app: (file path)”
CouldNotOpenFile(String)
“Could not open file: (file path)”
FileNotWritable(String)
“File not writable: (file path)”
FileNotOpen(String)
“File not open: (file path)”
Trait Implementations§
source§impl Clone for DocumentError
impl Clone for DocumentError
source§fn clone(&self) -> DocumentError
fn clone(&self) -> DocumentError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DocumentError
impl Debug for DocumentError
source§impl Display for DocumentError
impl Display for DocumentError
source§impl Error for DocumentError
impl Error for DocumentError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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
source§impl Hash for DocumentError
impl Hash for DocumentError
source§impl PartialEq for DocumentError
impl PartialEq for DocumentError
impl StructuralPartialEq for DocumentError
Auto Trait Implementations§
impl Freeze for DocumentError
impl RefUnwindSafe for DocumentError
impl Send for DocumentError
impl Sync for DocumentError
impl Unpin for DocumentError
impl UnwindSafe for DocumentError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)