Enum webc::compat::VolumeError
source · pub enum VolumeError {
NotFound,
Path(PathSegmentError),
NotADirectory,
NotAFile,
}
Expand description
Errors that may occur when doing Volume
operations.
Variants§
NotFound
The item wasn’t found.
Path(PathSegmentError)
The provided path wasn’t valid.
NotADirectory
A non-directory was found where a directory was expected.
NotAFile
A non-file was found where a file was expected.
Trait Implementations§
source§impl Clone for VolumeError
impl Clone for VolumeError
source§fn clone(&self) -> VolumeError
fn clone(&self) -> VolumeError
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 VolumeError
impl Debug for VolumeError
source§impl Display for VolumeError
impl Display for VolumeError
source§impl Error for VolumeError
impl Error for VolumeError
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<PathSegmentError> for VolumeError
impl From<PathSegmentError> for VolumeError
source§fn from(source: PathSegmentError) -> Self
fn from(source: PathSegmentError) -> Self
Converts to this type from the input type.
source§impl PartialEq for VolumeError
impl PartialEq for VolumeError
impl StructuralPartialEq for VolumeError
Auto Trait Implementations§
impl Freeze for VolumeError
impl RefUnwindSafe for VolumeError
impl Send for VolumeError
impl Sync for VolumeError
impl Unpin for VolumeError
impl UnwindSafe for VolumeError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)