Enum imap_types::core::LiteralMode
source · pub enum LiteralMode {
Sync,
NonSync,
}
Expand description
Literal mode, i.e., sync or non-sync.
Variants§
Sync
A synchronizing literal, i.e., {<n>}\r\n<data>
.
NonSync
A non-synchronizing literal according to RFC 7888, i.e., {<n>+}\r\n<data>
.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for LiteralMode
impl<'arbitrary> Arbitrary<'arbitrary> for LiteralMode
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 LiteralMode
impl Clone for LiteralMode
source§fn clone(&self) -> LiteralMode
fn clone(&self) -> LiteralMode
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 LiteralMode
impl Debug for LiteralMode
source§impl<'de> Deserialize<'de> for LiteralMode
impl<'de> Deserialize<'de> for LiteralMode
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 LiteralMode
impl Hash for LiteralMode
source§impl IntoBoundedStatic for LiteralMode
impl IntoBoundedStatic for LiteralMode
§type Static = LiteralMode
type Static = LiteralMode
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<LiteralMode> for LiteralMode
impl PartialEq<LiteralMode> for LiteralMode
source§fn eq(&self, other: &LiteralMode) -> bool
fn eq(&self, other: &LiteralMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LiteralMode
impl Serialize for LiteralMode
source§impl ToBoundedStatic for LiteralMode
impl ToBoundedStatic for LiteralMode
impl Copy for LiteralMode
impl Eq for LiteralMode
impl StructuralEq for LiteralMode
impl StructuralPartialEq for LiteralMode
Auto Trait Implementations§
impl RefUnwindSafe for LiteralMode
impl Send for LiteralMode
impl Sync for LiteralMode
impl Unpin for LiteralMode
impl UnwindSafe for LiteralMode
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