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 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 ==.impl Eq for GreetingKind
impl StructuralEq for GreetingKind
impl StructuralPartialEq for GreetingKind
Auto Trait Implementations§
impl RefUnwindSafe for GreetingKind
impl Send for GreetingKind
impl Sync for GreetingKind
impl Unpin for GreetingKind
impl UnwindSafe for GreetingKind
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