Trait gmime::AutocryptHeaderListExt [−][src]
Required Methods
fn add(&self, header: &AutocryptHeader)
[−]
fn add_missing_addresses(&self, addresses: &InternetAddressList) -> u32
[−]
Adds a new incomplete AutocryptHeader
object for each
InternetAddressMailbox found in addresses
.
addresses
an InternetAddressList
object
Returns
the number of addresses added
fn get_count(&self) -> u32
[−]
fn get_header_at(&self, index: u32) -> Option<AutocryptHeader>
[−]
Get the Nth header in the list (returns None
on error, or if index
is out of bounds)
index
an index into the list
Returns
a pointer to the Nth header in the list.
fn get_header_for_address(
&self,
mailbox: &InternetAddressMailbox
) -> Option<AutocryptHeader>
[−]
&self,
mailbox: &InternetAddressMailbox
) -> Option<AutocryptHeader>
Gets the Autocrypt header corresponding to the given mailbox
.
mailbox
an InternetAddressMailbox
object
Returns
a pointer to the header in the list which
matches the requested address, or None
if no such header exists in
the list.
fn remove_incomplete(&self)
[−]
Remove all incomplete Autocrypt headers from the list.
Implementors
impl<O: IsA<AutocryptHeaderList>> AutocryptHeaderListExt for O