Struct imap_codec::response::CodeOther
source · pub struct CodeOther<'a>(_);
Implementations§
source§impl<'a> CodeOther<'a>
impl<'a> CodeOther<'a>
sourcepub fn unvalidated<D>(data: D) -> CodeOther<'a>where
D: 'a + Into<Cow<'a, [u8]>>,
pub fn unvalidated<D>(data: D) -> CodeOther<'a>where D: 'a + Into<Cow<'a, [u8]>>,
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<CodeOther<'a>, Error>
fn arbitrary(_: &mut Unstructured<'a>) -> Result<CodeOther<'a>, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§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<CodeOther<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CodeOther<'a>, <__D as Deserializer<'de>>::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§fn into_static(self) -> <CodeOther<'a> as IntoBoundedStatic>::Static
fn into_static(self) -> <CodeOther<'a> as IntoBoundedStatic>::Static
Convert an owned
T
into an owned T
such that T: 'static
.source§impl<'a> PartialEq<CodeOther<'a>> for CodeOther<'a>
impl<'a> PartialEq<CodeOther<'a>> for CodeOther<'a>
source§impl<'a> Serialize for CodeOther<'a>
impl<'a> Serialize for CodeOther<'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 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