Skip to main content

VdirClientError

Enum VdirClientError 

Source
pub enum VdirClientError {
Show 14 variants VdirCollectionCreate(VdirCollectionCreateError), VdirCollectionDelete(VdirCollectionDeleteError), VdirCollectionList(VdirCollectionListError), VdirCollectionRename(VdirCollectionRenameError), VdirCollectionUpdate(VdirCollectionUpdateError), VdirItemLocate(VdirItemLocateError), VdirItemGet(VdirItemGetError), VdirItemList(VdirItemListError), VdirItemStore(VdirItemStoreError), VdirItemCopy(VdirItemCopyError), VdirItemMove(VdirItemMoveError), VdirItemDelete(VdirItemDeleteError), Io(Error), Random(Error),
}
Available on crate feature client only.
Expand description

Errors returned by the VdirClient helpers.

Variants§

§

VdirCollectionCreate(VdirCollectionCreateError)

A collection create coroutine failed.

§

VdirCollectionDelete(VdirCollectionDeleteError)

A collection delete coroutine failed.

§

VdirCollectionList(VdirCollectionListError)

A collection list coroutine failed.

§

VdirCollectionRename(VdirCollectionRenameError)

A collection rename coroutine failed.

§

VdirCollectionUpdate(VdirCollectionUpdateError)

A collection update coroutine failed.

§

VdirItemLocate(VdirItemLocateError)

An item locate coroutine failed.

§

VdirItemGet(VdirItemGetError)

An item get coroutine failed.

§

VdirItemList(VdirItemListError)

An item list coroutine failed.

§

VdirItemStore(VdirItemStoreError)

An item store coroutine failed.

§

VdirItemCopy(VdirItemCopyError)

An item copy coroutine failed.

§

VdirItemMove(VdirItemMoveError)

An item move coroutine failed.

§

VdirItemDelete(VdirItemDeleteError)

An item delete coroutine failed.

§

Io(Error)

A filesystem operation failed while servicing a coroutine request.

§

Random(Error)

The system entropy source failed while minting a new item id.

Trait Implementations§

Source§

impl Debug for VdirClientError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for VdirClientError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for VdirClientError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for VdirClientError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<VdirCollectionCreateError> for VdirClientError

Source§

fn from(source: VdirCollectionCreateError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirCollectionDeleteError> for VdirClientError

Source§

fn from(source: VdirCollectionDeleteError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirCollectionListError> for VdirClientError

Source§

fn from(source: VdirCollectionListError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirCollectionRenameError> for VdirClientError

Source§

fn from(source: VdirCollectionRenameError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirCollectionUpdateError> for VdirClientError

Source§

fn from(source: VdirCollectionUpdateError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirItemCopyError> for VdirClientError

Source§

fn from(source: VdirItemCopyError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirItemDeleteError> for VdirClientError

Source§

fn from(source: VdirItemDeleteError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirItemGetError> for VdirClientError

Source§

fn from(source: VdirItemGetError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirItemListError> for VdirClientError

Source§

fn from(source: VdirItemListError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirItemLocateError> for VdirClientError

Source§

fn from(source: VdirItemLocateError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirItemMoveError> for VdirClientError

Source§

fn from(source: VdirItemMoveError) -> Self

Converts to this type from the input type.
Source§

impl From<VdirItemStoreError> for VdirClientError

Source§

fn from(source: VdirItemStoreError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.