Trait gmime::AutocryptHeaderListExt[][src]

pub trait AutocryptHeaderListExt {
    fn add(&self, header: &AutocryptHeader);
fn add_missing_addresses(&self, addresses: &InternetAddressList) -> u32;
fn get_count(&self) -> u32;
fn get_header_at(&self, index: u32) -> Option<AutocryptHeader>;
fn get_header_for_address(
        &self,
        mailbox: &InternetAddressMailbox
    ) -> Option<AutocryptHeader>;
fn remove_incomplete(&self); }
[]

Trait containing all AutocryptHeaderList methods.

Implementors

AutocryptHeaderList

Required Methods

[]

Adds a the passed AutocryptHeader to the list.

a AutocryptHeader object

[]

Adds a new incomplete AutocryptHeader object for each InternetAddressMailbox found in addresses.

addresses

an InternetAddressList object

Returns

the number of addresses added

[]

See how many Autocrypt headers are in the list.

Returns

the number of available Autocrypt headers

[]

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.

[]

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.

[]

Remove all incomplete Autocrypt headers from the list.

Implementors