Enum libimagcontact::error::ContactErrorKind
[−]
pub enum ContactErrorKind { Msg(String), StoreError(StoreErrorKind), RefError(RefErrorKind), VObjectError(VObjectErrorKind), EntryUtilError(EntryUtilErrorKind), Io(Error), TomlQueryError(Error), UuidError(ParseError), HeaderTypeError(&'static str, &'static str), EntryNotFound(StoreId), UidMissing(String), // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
StoreError(StoreErrorKind)
RefError(RefErrorKind)
VObjectError(VObjectErrorKind)
EntryUtilError(EntryUtilErrorKind)
Io(Error)
TomlQueryError(Error)
UuidError(ParseError)
HeaderTypeError(&'static str, &'static str)
EntryNotFound(StoreId)
UidMissing(String)
Methods
impl ContactErrorKind
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ContactErrorKind> for ContactError
fn from(e: ContactErrorKind) -> Self
Performs the conversion.
impl Debug for ContactErrorKind
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ContactErrorKind
impl From<StoreErrorKind> for ContactErrorKind
fn from(e: StoreErrorKind) -> Self
Performs the conversion.
impl From<RefErrorKind> for ContactErrorKind
fn from(e: RefErrorKind) -> Self
Performs the conversion.
impl From<VObjectErrorKind> for ContactErrorKind
fn from(e: VObjectErrorKind) -> Self
Performs the conversion.
impl From<EntryUtilErrorKind> for ContactErrorKind
fn from(e: EntryUtilErrorKind) -> Self
Performs the conversion.
impl<'a> From<&'a str> for ContactErrorKind
impl From<String> for ContactErrorKind
impl From<ContactError> for ContactErrorKind
fn from(e: ContactError) -> Self
Performs the conversion.