Struct imap::types::Capabilities
source · pub struct Capabilities { /* private fields */ }
Expand description
The self-referencing struct.
Implementations§
source§impl Capabilities
impl Capabilities
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