Enum webc::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)>
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<VolumeError> for VolumeError
impl PartialEq<VolumeError> for VolumeError
source§fn eq(&self, other: &VolumeError) -> bool
fn eq(&self, other: &VolumeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.