pub struct MailboxOther<'a>(/* private fields */);
Implementations§
Source§impl<'a> MailboxOther<'a>
impl<'a> MailboxOther<'a>
pub fn validate(value: impl AsRef<[u8]>) -> Result<(), MailboxOtherError>
pub fn inner(&self) -> &AString<'_>
Sourcepub fn unvalidated(value: AString<'a>) -> Self
Available on crate feature unvalidated
only.
pub fn unvalidated(value: AString<'a>) -> Self
unvalidated
only.Constructs a mailbox without validation.
§Warning: IMAP conformance
The caller must ensure that value
is valid according to Self::validate
. Failing to do
so may create invalid/unparsable IMAP messages, or even produce unintended protocol flows.
Do not call this constructor with untrusted data.
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for MailboxOther<'a>
impl<'a> Arbitrary<'a> for MailboxOther<'a>
Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &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§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§impl<'a> AsRef<[u8]> for MailboxOther<'a>
impl<'a> AsRef<[u8]> for MailboxOther<'a>
Source§impl<'a> Clone for MailboxOther<'a>
impl<'a> Clone for MailboxOther<'a>
Source§fn clone(&self) -> MailboxOther<'a>
fn clone(&self) -> MailboxOther<'a>
Returns a duplicate 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<'a> Debug for MailboxOther<'a>
impl<'a> Debug for MailboxOther<'a>
Source§impl<'de, 'a> Deserialize<'de> for MailboxOther<'a>
impl<'de, 'a> Deserialize<'de> for MailboxOther<'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> Hash for MailboxOther<'a>
impl<'a> Hash for MailboxOther<'a>
Source§impl<'a> IntoBoundedStatic for MailboxOther<'a>
impl<'a> IntoBoundedStatic for MailboxOther<'a>
Source§type Static = MailboxOther<'static>
type Static = MailboxOther<'static>
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<'a> PartialEq for MailboxOther<'a>
impl<'a> PartialEq for MailboxOther<'a>
Source§impl<'a> Serialize for MailboxOther<'a>
impl<'a> Serialize for MailboxOther<'a>
Source§impl<'a> ToBoundedStatic for MailboxOther<'a>
impl<'a> ToBoundedStatic for MailboxOther<'a>
Source§impl<'a> TryFrom<&'a [u8]> for MailboxOther<'a>
impl<'a> TryFrom<&'a [u8]> for MailboxOther<'a>
Source§impl<'a> TryFrom<&'a str> for MailboxOther<'a>
impl<'a> TryFrom<&'a str> for MailboxOther<'a>
Source§impl<'a> TryFrom<AString<'a>> for MailboxOther<'a>
impl<'a> TryFrom<AString<'a>> for MailboxOther<'a>
Source§impl<'a> TryFrom<String> for MailboxOther<'a>
impl<'a> TryFrom<String> for MailboxOther<'a>
impl<'a> Eq for MailboxOther<'a>
impl<'a> StructuralPartialEq for MailboxOther<'a>
Auto Trait Implementations§
impl<'a> Freeze for MailboxOther<'a>
impl<'a> RefUnwindSafe for MailboxOther<'a>
impl<'a> Send for MailboxOther<'a>
impl<'a> Sync for MailboxOther<'a>
impl<'a> Unpin for MailboxOther<'a>
impl<'a> UnwindSafe for MailboxOther<'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