Enum imap_types::response::GreetingKind
source · pub enum GreetingKind {
Ok,
PreAuth,
Bye,
}Expand description
IMAP4rev1 defines three possible greetings at connection startup.
Variants§
Ok
The connection is not yet authenticated.
(Advice: A LOGIN command is needed.)
PreAuth
The connection has already been authenticated by external means.
(Advice: No LOGIN command is needed.)
Bye
The server is not willing to accept a connection from this client.
(Advice: The server closes the connection immediately.)
Trait Implementations§
source§impl Clone for GreetingKind
impl Clone for GreetingKind
source§fn clone(&self) -> GreetingKind
fn clone(&self) -> GreetingKind
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 GreetingKind
impl Debug for GreetingKind
source§impl Encode for GreetingKind
impl Encode for GreetingKind
source§impl Hash for GreetingKind
impl Hash for GreetingKind
source§impl PartialEq<GreetingKind> for GreetingKind
impl PartialEq<GreetingKind> for GreetingKind
source§fn eq(&self, other: &GreetingKind) -> bool
fn eq(&self, other: &GreetingKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.