Struct imap::types::Capabilities

source ·
pub struct Capabilities { /* private fields */ }
Expand description

The self-referencing struct.

Implementations§

Check if the server has the given capability.

Check if the server has the given capability via str.

Iterate over all the server’s capabilities

Returns how many capabilities the server has.

Returns true if the server purports to have no capabilities.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.