Enum imap_codec::response::Response
source · pub enum Response<'a> {
Status(Status<'a>),
Data(Data<'a>),
Continue(Continue<'a>),
}
Variants§
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.
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).
Continue(Continue<'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.
Trait Implementations§
source§impl<'a, 'arbitrary> Arbitrary<'arbitrary> for Response<'a>where
'arbitrary: 'a,
impl<'a, 'arbitrary> Arbitrary<'arbitrary> for Response<'a>where 'arbitrary: 'a,
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Response<'a>, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Response<'a>, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§impl<'a> DecodeStatic for Response<'static>
impl<'a> DecodeStatic for Response<'static>
source§impl<'de, 'a> Deserialize<'de> for Response<'a>
impl<'de, 'a> Deserialize<'de> for Response<'a>
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Response<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Response<'a>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encoder<&Response<'_>> for ImapServerCodec
Available on crate feature tokio
only.
impl Encoder<&Response<'_>> for ImapServerCodec
Available on crate feature
tokio
only.source§impl<'a> IntoBoundedStatic for Response<'a>
impl<'a> IntoBoundedStatic for Response<'a>
source§fn into_static(self) -> <Response<'a> as IntoBoundedStatic>::Static
fn into_static(self) -> <Response<'a> as IntoBoundedStatic>::Static
Convert an owned
T
into an owned T
such that T: 'static
.source§impl<'a> PartialEq<Response<'a>> for Response<'a>
impl<'a> PartialEq<Response<'a>> for Response<'a>
source§impl<'a> Serialize for Response<'a>
impl<'a> Serialize for Response<'a>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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