Enum async_pop::types::Capability
source · pub enum Capability {
Top,
User,
Sasl(Vec<String>),
RespCodes,
LoginDelay(Duration),
Pipelining,
Expire(Option<Duration>),
Uidl,
Implementation(String),
}
Variants§
Top
Whether the TOP command is supported.
User
Whether the USER and PASS commands (login) are supported.
Sasl(Vec<String>)
Whether the use of a SASL based login is supported and if so what kinds. See https://www.rfc-editor.org/rfc/rfc1734
RespCodes
Whether the server uses extends response codes. See https://www.rfc-editor.org/rfc/rfc2449#section-8
LoginDelay(Duration)
Whether there is a delay between each login and how long it is.
Pipelining
Whether the server supports pipelining. See https://www.rfc-editor.org/rfc/rfc2197
Expire(Option<Duration>)
The amount of time the server will store messsages for.
Uidl
Whether the UIDL command is supported.
Implementation(String)
The type of authentication method the server prefers/uses.
Trait Implementations§
source§impl Debug for Capability
impl Debug for Capability
source§impl Ord for Capability
impl Ord for Capability
source§fn cmp(&self, other: &Capability) -> Ordering
fn cmp(&self, other: &Capability) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<Capability> for Capability
impl PartialEq<Capability> for Capability
source§fn eq(&self, other: &Capability) -> bool
fn eq(&self, other: &Capability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Capability> for Capability
impl PartialOrd<Capability> for Capability
source§fn partial_cmp(&self, other: &Capability) -> Option<Ordering>
fn partial_cmp(&self, other: &Capability) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more