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§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§impl Clone for GreetingKind
impl Clone for GreetingKind
Source§fn clone(&self) -> GreetingKind
fn clone(&self) -> GreetingKind
Returns a duplicate 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
Source§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 for GreetingKind
impl PartialEq for GreetingKind
Source§impl Serialize for GreetingKind
impl Serialize for GreetingKind
Source§impl ToBoundedStatic for GreetingKind
impl ToBoundedStatic for GreetingKind
impl Eq for GreetingKind
impl StructuralPartialEq for GreetingKind
Auto Trait Implementations§
impl Freeze for GreetingKind
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