[−][src]Enum imap::types::Flag
With the exception of Flag::Custom
, these flags are system flags that are pre-defined in
RFC 3501 section 2.3.2. All system flags
begin with \
in the IMAP protocol. Certain system flags (\Deleted
and \Seen
) have
special semantics described elsewhere.
A flag can be permanent or session-only on a per-flag basis. Permanent flags are those which the client can add or remove from the message flags permanently; that is, concurrent and subsequent sessions will see any change in permanent flags. Changes to session flags are valid only in that session.
Note: The
\Recent
system flag is a special case of a session flag.\Recent
can not be used as an argument in aSTORE
orAPPEND
command, and thus can not be changed at all.
Variants
Message has been read
Message has been answered
Message is "flagged" for urgent/special attention
Message is "deleted" for removal by later EXPUNGE
Message has not completed composition (marked as a draft).
Message is "recently" arrived in this mailbox. This session is the first session to have
been notified about this message; if the session is read-write, subsequent sessions will
not see \Recent
set for this message. This flag can not be altered by the client.
If it is not possible to determine whether or not this session is the first session to be notified about a message, then that message will generally be considered recent.
If multiple connections have the same mailbox selected simultaneously, it is undefined
which of these connections will see newly-arrived messages with \Recent
set and which
will see it without \Recent
set.
The Mailbox::permanent_flags
can include this special flag (\*
), which indicates that
it is possible to create new keywords by attempting to store those flags in the mailbox.
A non-standard user- or server-defined flag.
Trait Implementations
impl<'a> Clone for Flag<'a>
[src]
impl<'a> Debug for Flag<'a>
[src]
impl<'a> Eq for Flag<'a>
[src]
impl<'a> From<&'a str> for Flag<'a>
[src]
impl<'a> From<String> for Flag<'a>
[src]
impl<'a> Hash for Flag<'a>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> PartialEq<Flag<'a>> for Flag<'a>
[src]
impl<'a> StructuralEq for Flag<'a>
[src]
impl<'a> StructuralPartialEq for Flag<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Flag<'a>
impl<'a> Send for Flag<'a>
impl<'a> Sync for Flag<'a>
impl<'a> Unpin for Flag<'a>
impl<'a> UnwindSafe for Flag<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,