Expand description
A builder for the append command
Implementations
sourceimpl<'a, T: Read + Write> AppendCmd<'a, T>
impl<'a, T: Read + Write> AppendCmd<'a, T>
sourcepub fn flag(&mut self, flag: Flag<'a>) -> &mut Self
pub fn flag(&mut self, flag: Flag<'a>) -> &mut Self
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
.
sourcepub fn flags(&mut self, flags: impl IntoIterator<Item = Flag<'a>>) -> &mut Self
pub fn flags(&mut self, flags: impl IntoIterator<Item = Flag<'a>>) -> &mut Self
Set multiple flags at once.
sourcepub fn internal_date(&mut self, date: DateTime<FixedOffset>) -> &mut Self
pub fn internal_date(&mut self, date: DateTime<FixedOffset>) -> &mut Self
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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more