Enum imap_types::response::Response
source · pub enum Response<'a> {
CommandContinuationRequest(CommandContinuationRequest<'a>),
Data(Data<'a>),
Status(Status<'a>),
}
Variants§
CommandContinuationRequest(CommandContinuationRequest<'a>)
Command continuation request responses use the token “+” instead of a tag. These responses are sent by the server to indicate acceptance of an incomplete client command and readiness for the remainder of the command.
Data(Data<'a>)
All server data is untagged. An untagged response is indicated by the token “*” instead of a tag. Untagged status responses indicate server greeting, or server status that does not indicate the completion of a command (for example, an impending system shutdown alert).
Status(Status<'a>)
Status responses can be tagged or untagged. Tagged status responses indicate the completion result (OK, NO, or BAD status) of a client command, and have a tag matching the command.
Trait Implementations§
source§impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for Response<'a>
impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for Response<'a>
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<'de, 'a> Deserialize<'de> for Response<'a>
impl<'de, 'a> Deserialize<'de> for Response<'a>
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<'a> IntoBoundedStatic for Response<'a>
impl<'a> IntoBoundedStatic for Response<'a>
source§impl<'a> PartialEq<Response<'a>> for Response<'a>
impl<'a> PartialEq<Response<'a>> for Response<'a>
source§impl<'a> ToBoundedStatic for Response<'a>
impl<'a> ToBoundedStatic for Response<'a>
impl<'a> Eq for Response<'a>
impl<'a> StructuralEq for Response<'a>
impl<'a> StructuralPartialEq for Response<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnwindSafe for Response<'a>
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