Struct imap::types::Capabilities
source · [−]pub struct Capabilities { /* private fields */ }
Expand description
The self-referencing struct.
Implementations
sourceimpl Capabilities
impl Capabilities
sourcepub fn parse(
owned: Vec<u8>,
unsolicited: &mut Sender<UnsolicitedResponse>
) -> Result<Self, Error>
pub fn parse(
owned: Vec<u8>,
unsolicited: &mut Sender<UnsolicitedResponse>
) -> Result<Self, Error>
Parse the given input into one or more [Capabilitity
] responses.
sourcepub fn has<'a>(&self, cap: &Capability<'a>) -> bool
pub fn has<'a>(&self, cap: &Capability<'a>) -> bool
Check if the server has the given capability.
sourcepub fn has_str<S: AsRef<str>>(&self, cap: S) -> bool
pub fn has_str<S: AsRef<str>>(&self, cap: S) -> bool
Check if the server has the given capability via str.
sourcepub fn iter(&self) -> Iter<'_, Capability<'_>>
pub fn iter(&self) -> Iter<'_, Capability<'_>>
Iterate over all the server’s capabilities
Auto Trait Implementations
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more