pub enum Capability {
Top,
User,
Sasl(Vec<Bytes>),
RespCodes,
LoginDelay(Duration),
Pipelining,
Expire(Expiration),
Uidl,
Implementation(Text),
Stls,
Other(Text),
}
Variants§
Top
Whether the TOP command is supported.
User
Whether the USER and PASS commands (login) are supported.
Sasl(Vec<Bytes>)
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(Expiration)
The amount of time the server will store messsages for.
Uidl
Whether the UIDL command is supported.
Implementation(Text)
The type of authentication method the server prefers/uses.
Stls
Other(Text)
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Capability
impl Debug for Capability
Source§impl Hash for Capability
impl Hash 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 for Capability
impl PartialEq for Capability
Source§impl PartialOrd for Capability
impl PartialOrd for Capability
impl Eq for Capability
impl StructuralPartialEq for Capability
Auto Trait Implementations§
impl !Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more