pub enum LoadM2dirError {
NotDir(M2dirPath),
NoDotM2dir(M2dirPath),
}Expand description
Errors that can occur while opening an existing m2dir.
Variants§
NotDir(M2dirPath)
The given path is not a directory.
NoDotM2dir(M2dirPath)
The given directory does not contain the .m2dir marker.
Trait Implementations§
Source§impl Clone for LoadM2dirError
impl Clone for LoadM2dirError
Source§fn clone(&self) -> LoadM2dirError
fn clone(&self) -> LoadM2dirError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LoadM2dirError
impl Debug for LoadM2dirError
Source§impl Display for LoadM2dirError
impl Display for LoadM2dirError
Source§impl Error for LoadM2dirError
impl Error for LoadM2dirError
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
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<LoadM2dirError> for M2dirClientError
Available on crate feature client only.
impl From<LoadM2dirError> for M2dirClientError
Available on crate feature
client only.Source§fn from(source: LoadM2dirError) -> Self
fn from(source: LoadM2dirError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoadM2dirError
impl RefUnwindSafe for LoadM2dirError
impl Send for LoadM2dirError
impl Sync for LoadM2dirError
impl Unpin for LoadM2dirError
impl UnsafeUnpin for LoadM2dirError
impl UnwindSafe for LoadM2dirError
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