Struct imap_types::extensions::binary::Literal8
source · pub struct Literal8<'a> {
pub data: Cow<'a, [u8]>,
pub mode: LiteralMode,
}Expand description
String that might contain NULs.
Fields§
§data: Cow<'a, [u8]>§mode: LiteralModeSpecifies whether this is a synchronizing or non-synchronizing literal.
true (default) denotes a synchronizing literal, e.g., ~{3}\r\nfoo.
false denotes a non-synchronizing literal, e.g., ~{3+}\r\nfoo.
Note: In the special case that a server advertised a LITERAL- capability, AND the literal
has more than 4096 bytes a non-synchronizing literal must still be treated as synchronizing.
Trait Implementations§
source§impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for Literal8<'a>
impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for Literal8<'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 Literal8<'a>
impl<'de, 'a> Deserialize<'de> for Literal8<'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 Literal8<'a>
impl<'a> IntoBoundedStatic for Literal8<'a>
source§impl<'a> PartialEq for Literal8<'a>
impl<'a> PartialEq for Literal8<'a>
source§impl<'a> ToBoundedStatic for Literal8<'a>
impl<'a> ToBoundedStatic for Literal8<'a>
impl<'a> Eq for Literal8<'a>
impl<'a> StructuralPartialEq for Literal8<'a>
Auto Trait Implementations§
impl<'a> Freeze for Literal8<'a>
impl<'a> RefUnwindSafe for Literal8<'a>
impl<'a> Send for Literal8<'a>
impl<'a> Sync for Literal8<'a>
impl<'a> Unpin for Literal8<'a>
impl<'a> UnwindSafe for Literal8<'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
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)