Enum email::Error

source ·
pub enum Error {
Show 74 variants FindMessageError(String), ParseError(Vec<Rich<'static, char>>, String), InterpretMessageAsTemplateError(Error), InterpretMessageAsThreadTemplateError(Error), RunSendmailCommandError(Error), RemoveNotmuchMessageError(Error, String, Id), RemoveMaildirMessageError(Error, String, String), AddDeletedFlagImapError(Error, String, Id), PeekMessagesImapError(Error, String, Id), MoveMessageNotmuchError(Error, String, String, String), MoveMessagesMaildirError(Error, String, String, String), MoveMessagesImapError(Error, String, String, Id), ParseEmailError, ParseEmailEmptyRawError, DeleteLocalDraftError(Error, PathBuf), ParseEmailFromEmptyEntriesError, ChumskyError(String), AcountError(Error), DecryptEmailPartError(Error), VerifyEmailPartError(Error), GetMultipartContentTypeError, GetEncryptedPartMultipartError, WriteEncryptedPartBodyError(Error), DecryptPartError(Error), InterpretEmailAsTplError(Error), ParseEmailMessageError, GetMessagesImapError(Error, String, Id), GetMessageFilenameNotmuchError(PathBuf), CopyMessageNotmuchError(Error, String, String, String), CopyMessagesMaildirError(Error, String, String, String), CopyMessagesImapError(Error, String, String, Id), StoreWithFlagsMaildirError(Error, String, Flags), AppendRawMessageWithFlagsImapError(Error, String, Flags), GetAddedMessageUidFromRangeImapError(String), GetAddedMessageUidImapError, GetSubfolderMaildirError(Error, PathBuf), ParseSubfolderMaildirError(PathBuf, PathBuf), InitFolderMaildirError(Error, PathBuf), ExamineFolderImapError(Error, String), RunIdleModeImapError(Error), ListAllEnvelopesImapError(Error, String), GetEnvelopesOutOfBoundsNotmuchError(String, usize), SearchMessagesInvalidQueryNotmuch(Error, String, String), GetEnvelopesOutOfBoundsMaildirError(String, usize), ListEnvelopesImapError(Error, String, String), SearchEnvelopesImapError(Error, String, String), BuildPageRangeOutOfBoundsImapError(usize), GetUidMissingImapError(u32), GetEnvelopeMissingError(u32), FindEnvelopeEmptyNotmuchError(String, String), GetEnvelopeMaildirError(PathBuf, Id), FetchEnvolpesImapError(Error, String, Id), GetFirstEnvelopeImapError(String, Id), SetFlagsMaildirError(Error, String, String, Flags), SetFlagImapError(Error, String, Id, Flags), RemoveFlagsMaildirError(Error, String, String, Flags), RemoveFlagImapError(Error, String, Id, Flags), ParseFlagError(String), ParseFlagMaildirError(char), ParseFlagImapError(String), AddFlagsMaildirError(Error, String, String, Flags), SelectFolderImapError(Error, String), AddFlagImapError(Error, String, Id, Flags), InvalidInput(String), FailedToGetEnvelopes(JoinError), NotMuchFailure(Error), ProcessFailure(Error), MaildirppFailure(Error), NotifyFailure(Error), FileReadFailure(Error), ListLeftEnvelopesCachedError(AnyBoxedError), ListLeftEnvelopesError(AnyBoxedError), ListRightEnvelopesCachedError(AnyBoxedError), ListRightEnvelopesError(AnyBoxedError),
}
Expand description

The global Error enum of the module.

Variants§

§

FindMessageError(String)

§

ParseError(Vec<Rich<'static, char>>, String)

§

InterpretMessageAsTemplateError(Error)

§

InterpretMessageAsThreadTemplateError(Error)

§

RunSendmailCommandError(Error)

§

RemoveNotmuchMessageError(Error, String, Id)

§

RemoveMaildirMessageError(Error, String, String)

§

AddDeletedFlagImapError(Error, String, Id)

§

PeekMessagesImapError(Error, String, Id)

§

MoveMessageNotmuchError(Error, String, String, String)

§

MoveMessagesMaildirError(Error, String, String, String)

§

MoveMessagesImapError(Error, String, String, Id)

§

ParseEmailError

§

ParseEmailEmptyRawError

§

DeleteLocalDraftError(Error, PathBuf)

§

ParseEmailFromEmptyEntriesError

§

ChumskyError(String)

§

AcountError(Error)

§

DecryptEmailPartError(Error)

§

VerifyEmailPartError(Error)

§

GetMultipartContentTypeError

§

GetEncryptedPartMultipartError

§

WriteEncryptedPartBodyError(Error)

§

DecryptPartError(Error)

§

InterpretEmailAsTplError(Error)

§

ParseEmailMessageError

§

GetMessagesImapError(Error, String, Id)

§

GetMessageFilenameNotmuchError(PathBuf)

§

CopyMessageNotmuchError(Error, String, String, String)

§

CopyMessagesMaildirError(Error, String, String, String)

§

CopyMessagesImapError(Error, String, String, Id)

§

StoreWithFlagsMaildirError(Error, String, Flags)

§

AppendRawMessageWithFlagsImapError(Error, String, Flags)

§

GetAddedMessageUidFromRangeImapError(String)

§

GetAddedMessageUidImapError

§

GetSubfolderMaildirError(Error, PathBuf)

§

ParseSubfolderMaildirError(PathBuf, PathBuf)

§

InitFolderMaildirError(Error, PathBuf)

§

ExamineFolderImapError(Error, String)

§

RunIdleModeImapError(Error)

§

ListAllEnvelopesImapError(Error, String)

§

GetEnvelopesOutOfBoundsNotmuchError(String, usize)

§

SearchMessagesInvalidQueryNotmuch(Error, String, String)

§

GetEnvelopesOutOfBoundsMaildirError(String, usize)

§

ListEnvelopesImapError(Error, String, String)

§

SearchEnvelopesImapError(Error, String, String)

§

BuildPageRangeOutOfBoundsImapError(usize)

§

GetUidMissingImapError(u32)

§

GetEnvelopeMissingError(u32)

§

FindEnvelopeEmptyNotmuchError(String, String)

§

GetEnvelopeMaildirError(PathBuf, Id)

§

FetchEnvolpesImapError(Error, String, Id)

§

GetFirstEnvelopeImapError(String, Id)

§

SetFlagsMaildirError(Error, String, String, Flags)

§

SetFlagImapError(Error, String, Id, Flags)

§

RemoveFlagsMaildirError(Error, String, String, Flags)

§

RemoveFlagImapError(Error, String, Id, Flags)

§

ParseFlagError(String)

§

ParseFlagMaildirError(char)

§

ParseFlagImapError(String)

§

AddFlagsMaildirError(Error, String, String, Flags)

§

SelectFolderImapError(Error, String)

§

AddFlagImapError(Error, String, Id, Flags)

§

InvalidInput(String)

§

FailedToGetEnvelopes(JoinError)

§

NotMuchFailure(Error)

§

ProcessFailure(Error)

§

MaildirppFailure(Error)

§

NotifyFailure(Error)

§

FileReadFailure(Error)

§

ListLeftEnvelopesCachedError(AnyBoxedError)

§

ListLeftEnvelopesError(AnyBoxedError)

§

ListRightEnvelopesCachedError(AnyBoxedError)

§

ListRightEnvelopesError(AnyBoxedError)

Trait Implementations§

source§

impl AnyError for Error

source§

fn as_any(&self) -> &dyn Any

source§

impl Debug for Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

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 AnyBoxedError

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

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<Src, Scheme> ApproxFrom<Src, Scheme> for Src
where Scheme: ApproxScheme,

§

type Err = NoError

The error type produced by a failed conversion.
source§

fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>

Convert the given value into an approximately equivalent representation.
source§

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src
where Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,

§

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.
source§

fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>

Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T

source§

fn approx(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject with the default scheme.
source§

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject with a specific scheme.
source§

impl<T> ConvUtil for T

source§

fn approx_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject to a given type with the default scheme.
source§

fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject to a given type with a specific scheme.
source§

fn into_as<Dst>(self) -> Dst
where Self: Sized + Into<Dst>,

Convert the subject to a given type.
source§

fn try_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + TryInto<Dst>,

Attempt to convert the subject to a given type.
source§

fn value_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ValueInto<Dst>,

Attempt a value conversion of the subject to a given type.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

source§

default fn to_string(&self) -> String

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

impl<Src> TryFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
source§

fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>

Convert the given value into the subject type.
source§

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

§

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<Src, Dst> TryInto<Dst> for Src
where Dst: TryFrom<Src>,

§

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.
source§

fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>

Convert the subject into the destination type.
source§

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

§

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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<Src> ValueFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
source§

fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>

Convert the given value into an exactly equivalent representation.
source§

impl<Src, Dst> ValueInto<Dst> for Src
where Dst: ValueFrom<Src>,

§

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.
source§

fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>

Convert the subject into an exactly equivalent representation.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> MaybeSync for T