Struct imap::AppendCmd[][src]

#[must_use]
pub struct AppendCmd<'a, T: Read + Write> { /* fields omitted */ }

A builder for the append command

Implementations

impl<'a, T: Read + Write> AppendCmd<'a, T>[src]

pub fn flag(&mut self, flag: Flag<'a>) -> &mut Self[src]

The APPEND command can take an optional FLAGS parameter to set the flags on the new message.

If a flag parenthesized list is specified, the flags SHOULD be set in the resulting message; otherwise, the flag list of the resulting message is set to empty by default. In either case, the Recent flag is also set.

The \Recent flag is not allowed as an argument to APPEND and will be filtered out if present in flags.

pub fn flags(&mut self, flags: impl IntoIterator<Item = Flag<'a>>) -> &mut Self[src]

Set multiple flags at once.

pub fn internal_date(&mut self, date: DateTime<FixedOffset>) -> &mut Self[src]

Pass a date in order to set the date that the message was originally sent.

If a date-time is specified, the internal date SHOULD be set in the resulting message; otherwise, the internal date of the resulting message is set to the current date and time by default.

pub fn finish(&mut self) -> Result<()>[src]

Finishes up the command and executes it.

Note: be sure to set flags and optional date before you finish the command.

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for AppendCmd<'a, T>

impl<'a, T> Send for AppendCmd<'a, T> where
    T: Send

impl<'a, T> !Sync for AppendCmd<'a, T>

impl<'a, T> Unpin for AppendCmd<'a, T>

impl<'a, T> !UnwindSafe for AppendCmd<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.