pub enum M2dirClientError {
Show 14 variants
Store(M2dirStoreError),
LoadM2dir(M2dirLoadError),
CreateM2dir(M2dirCreateError),
DeleteM2dir(M2dirDeleteError),
ListM2dirs(M2dirListError),
ListEntries(M2dirEntryListError),
GetEntry(M2dirEntryGetError),
StoreEntry(M2dirEntryStoreError),
DeleteEntry(M2dirEntryDeleteError),
AddFlags(M2dirFlagAddError),
RemoveFlags(M2dirFlagRemoveError),
SetFlags(M2dirFlagSetError),
Parse(M2dirEntryParseError),
Io(Error),
}Available on crate feature
client only.Expand description
Errors returned by M2dirClient.
Variants§
Store(M2dirStoreError)
An m2store operation (open, resolve, decode) failed.
LoadM2dir(M2dirLoadError)
Opening an existing m2dir failed.
CreateM2dir(M2dirCreateError)
Creating an m2dir failed.
DeleteM2dir(M2dirDeleteError)
Removing an m2dir failed.
ListM2dirs(M2dirListError)
Listing the m2dirs under the store failed.
ListEntries(M2dirEntryListError)
Listing the entries of an m2dir failed.
GetEntry(M2dirEntryGetError)
Getting an entry by id failed.
StoreEntry(M2dirEntryStoreError)
Storing a new entry failed.
DeleteEntry(M2dirEntryDeleteError)
Deleting an entry failed.
AddFlags(M2dirFlagAddError)
Adding flags to an entry failed.
RemoveFlags(M2dirFlagRemoveError)
Removing flags from an entry failed.
SetFlags(M2dirFlagSetError)
Replacing an entry’s flags failed.
Parse(M2dirEntryParseError)
Parsing or checksum-validating an entry failed.
Io(Error)
A raw filesystem operation failed.
Trait Implementations§
Source§impl Debug for M2dirClientError
impl Debug for M2dirClientError
Source§impl Display for M2dirClientError
impl Display for M2dirClientError
Source§impl Error for M2dirClientError
impl Error for M2dirClientError
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<Error> for M2dirClientError
impl From<Error> for M2dirClientError
Source§impl From<M2dirCreateError> for M2dirClientError
impl From<M2dirCreateError> for M2dirClientError
Source§fn from(source: M2dirCreateError) -> Self
fn from(source: M2dirCreateError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirDeleteError> for M2dirClientError
impl From<M2dirDeleteError> for M2dirClientError
Source§fn from(source: M2dirDeleteError) -> Self
fn from(source: M2dirDeleteError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirEntryDeleteError> for M2dirClientError
impl From<M2dirEntryDeleteError> for M2dirClientError
Source§fn from(source: M2dirEntryDeleteError) -> Self
fn from(source: M2dirEntryDeleteError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirEntryGetError> for M2dirClientError
impl From<M2dirEntryGetError> for M2dirClientError
Source§fn from(source: M2dirEntryGetError) -> Self
fn from(source: M2dirEntryGetError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirEntryListError> for M2dirClientError
impl From<M2dirEntryListError> for M2dirClientError
Source§fn from(source: M2dirEntryListError) -> Self
fn from(source: M2dirEntryListError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirEntryParseError> for M2dirClientError
impl From<M2dirEntryParseError> for M2dirClientError
Source§fn from(source: M2dirEntryParseError) -> Self
fn from(source: M2dirEntryParseError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirEntryStoreError> for M2dirClientError
impl From<M2dirEntryStoreError> for M2dirClientError
Source§fn from(source: M2dirEntryStoreError) -> Self
fn from(source: M2dirEntryStoreError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirFlagAddError> for M2dirClientError
impl From<M2dirFlagAddError> for M2dirClientError
Source§fn from(source: M2dirFlagAddError) -> Self
fn from(source: M2dirFlagAddError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirFlagRemoveError> for M2dirClientError
impl From<M2dirFlagRemoveError> for M2dirClientError
Source§fn from(source: M2dirFlagRemoveError) -> Self
fn from(source: M2dirFlagRemoveError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirFlagSetError> for M2dirClientError
impl From<M2dirFlagSetError> for M2dirClientError
Source§fn from(source: M2dirFlagSetError) -> Self
fn from(source: M2dirFlagSetError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirListError> for M2dirClientError
impl From<M2dirListError> for M2dirClientError
Source§fn from(source: M2dirListError) -> Self
fn from(source: M2dirListError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirLoadError> for M2dirClientError
impl From<M2dirLoadError> for M2dirClientError
Source§fn from(source: M2dirLoadError) -> Self
fn from(source: M2dirLoadError) -> Self
Converts to this type from the input type.
Source§impl From<M2dirStoreError> for M2dirClientError
impl From<M2dirStoreError> for M2dirClientError
Source§fn from(source: M2dirStoreError) -> Self
fn from(source: M2dirStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for M2dirClientError
impl !UnwindSafe for M2dirClientError
impl Freeze for M2dirClientError
impl Send for M2dirClientError
impl Sync for M2dirClientError
impl Unpin for M2dirClientError
impl UnsafeUnpin for M2dirClientError
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