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<'arbitrary> Arbitrary<'arbitrary> for GreetingKind
impl<'arbitrary> Arbitrary<'arbitrary> for GreetingKind
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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<'de> Deserialize<'de> for GreetingKind
impl<'de> Deserialize<'de> for GreetingKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for GreetingKind
impl Hash for GreetingKind
source§impl IntoBoundedStatic for GreetingKind
impl IntoBoundedStatic for GreetingKind
§type Static = GreetingKind
type Static = GreetingKind
The target type is bounded by the
'static
lifetime.source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.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 ==
.source§impl Serialize for GreetingKind
impl Serialize for GreetingKind
source§impl ToBoundedStatic for GreetingKind
impl ToBoundedStatic for GreetingKind
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