Enum imap_types::response::StatusKind
source · pub enum StatusKind {
Ok,
No,
Bad,
}Expand description
Status kind.
Variants§
Ok
Indicates an information from the server.
- In
Status::Tagged, it indicates successful completion of the associated command. - In
Status::Untagged, it indicates an information-only message.
No
Indicates an operational error from the server.
- In
Status::Tagged, it indicates unsuccessful completion of the associated command. - In
Status::Untagged, it indicates a warning.
Bad
Indicates a protocol-level error from the server.
- In
Status::Tagged, it reports a protocol-level error in the client’s command. - In
Status::Untagged, it indicates a protocol-level error for which the associated command can not be determined.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for StatusKind
impl<'arbitrary> Arbitrary<'arbitrary> for StatusKind
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 StatusKind
impl Clone for StatusKind
source§fn clone(&self) -> StatusKind
fn clone(&self) -> StatusKind
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 StatusKind
impl Debug for StatusKind
source§impl<'de> Deserialize<'de> for StatusKind
impl<'de> Deserialize<'de> for StatusKind
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 StatusKind
impl Hash for StatusKind
source§impl IntoBoundedStatic for StatusKind
impl IntoBoundedStatic for StatusKind
§type Static = StatusKind
type Static = StatusKind
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 StatusKind
impl PartialEq for StatusKind
source§fn eq(&self, other: &StatusKind) -> bool
fn eq(&self, other: &StatusKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for StatusKind
impl Serialize for StatusKind
source§impl ToBoundedStatic for StatusKind
impl ToBoundedStatic for StatusKind
impl Copy for StatusKind
impl Eq for StatusKind
impl StructuralPartialEq for StatusKind
Auto Trait Implementations§
impl Freeze for StatusKind
impl RefUnwindSafe for StatusKind
impl Send for StatusKind
impl Sync for StatusKind
impl Unpin for StatusKind
impl UnwindSafe for StatusKind
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)