pub enum M2dirStoreError {
NotDir(M2dirPath),
NoDotM2store(M2dirPath),
AbsolutePath(String),
EscapesRoot(String),
}Expand description
Errors that can occur while operating on an m2store.
Variants§
NotDir(M2dirPath)
The given path is not a directory.
NoDotM2store(M2dirPath)
The given directory does not contain the .m2store marker.
AbsolutePath(String)
The given folder name resolves to an absolute path.
EscapesRoot(String)
The given folder name contains components that fall outside
the m2store root (such as ..).
Trait Implementations§
Source§impl Clone for M2dirStoreError
impl Clone for M2dirStoreError
Source§fn clone(&self) -> M2dirStoreError
fn clone(&self) -> M2dirStoreError
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 M2dirStoreError
impl Debug for M2dirStoreError
Source§impl Display for M2dirStoreError
impl Display for M2dirStoreError
Source§impl Error for M2dirStoreError
impl Error for M2dirStoreError
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<M2dirStoreError> for M2dirClientError
Available on crate feature client only.
impl From<M2dirStoreError> for M2dirClientError
Available on crate feature
client only.Source§fn from(source: M2dirStoreError) -> Self
fn from(source: M2dirStoreError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirStoreError> for M2dirCreateError
impl From<M2dirStoreError> for M2dirCreateError
Source§fn from(source: M2dirStoreError) -> Self
fn from(source: M2dirStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for M2dirStoreError
impl RefUnwindSafe for M2dirStoreError
impl Send for M2dirStoreError
impl Sync for M2dirStoreError
impl Unpin for M2dirStoreError
impl UnsafeUnpin for M2dirStoreError
impl UnwindSafe for M2dirStoreError
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