Struct imap_types::response::CodeOther
source · pub struct CodeOther<'a>(_);
Implementations§
source§impl<'a> CodeOther<'a>
impl<'a> CodeOther<'a>
sourcepub fn unvalidated<D>(data: D) -> Selfwhere
D: Into<Cow<'a, [u8]>> + 'a,
Available on crate feature unvalidated
only.
pub fn unvalidated<D>(data: D) -> Selfwhere D: Into<Cow<'a, [u8]>> + 'a,
unvalidated
only.Constructs an unsupported code without validation.
Warning: IMAP conformance
The caller must ensure that data
is valid. Failing to do so may create invalid/unparsable
IMAP messages, or even produce unintended protocol flows. Do not call this constructor with
untrusted data.
pub fn inner(&self) -> &[u8] ⓘ
Trait Implementations§
source§impl<'a> Arbitrary<'a> for CodeOther<'a>
impl<'a> Arbitrary<'a> for CodeOther<'a>
source§fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'de, 'a> Deserialize<'de> for CodeOther<'a>
impl<'de, 'a> Deserialize<'de> for CodeOther<'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 CodeOther<'a>
impl<'a> IntoBoundedStatic for CodeOther<'a>
source§impl<'a> PartialEq<CodeOther<'a>> for CodeOther<'a>
impl<'a> PartialEq<CodeOther<'a>> for CodeOther<'a>
source§impl<'a> ToBoundedStatic for CodeOther<'a>
impl<'a> ToBoundedStatic for CodeOther<'a>
impl<'a> Eq for CodeOther<'a>
impl<'a> StructuralEq for CodeOther<'a>
impl<'a> StructuralPartialEq for CodeOther<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CodeOther<'a>
impl<'a> Send for CodeOther<'a>
impl<'a> Sync for CodeOther<'a>
impl<'a> Unpin for CodeOther<'a>
impl<'a> UnwindSafe for CodeOther<'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