Trait gmime::CertificateListExt[][src]

pub trait CertificateListExt {
    fn add(&self, cert: &Certificate) -> i32;
fn clear(&self);
fn contains(&self, cert: &Certificate) -> bool;
fn get_certificate(&self, index: i32) -> Option<Certificate>;
fn index_of(&self, cert: &Certificate) -> i32;
fn insert(&self, index: i32, cert: &Certificate);
fn length(&self) -> i32;
fn remove(&self, cert: &Certificate) -> bool;
fn remove_at(&self, index: i32) -> bool;
fn set_certificate(&self, index: i32, cert: &Certificate); }

Trait containing all CertificateList methods.

Implementors

CertificateList

Required Methods

Adds a Certificate to the CertificateList.

cert

a Certificate

Returns

the index of the added Certificate.

Clears the list of certificates.

Checks whether or not the specified Certificate is contained within the CertificateList.

cert

a Certificate

Returns

true if the specified Certificate is contained within the specified CertificateList or false otherwise.

Gets the Certificate at the specified index.

index

index of Certificate to get

Returns

the Certificate at the specified index or None if the index is out of range.

Gets the index of the specified Certificate inside the CertificateList.

cert

a Certificate

Returns

the index of the requested Certificate within the CertificateList or %-1 if it is not contained within the CertificateList.

Inserts a Certificate into the CertificateList at the specified index.

index

index to insert at

cert

a Certificate

Gets the length of the list.

Returns

the number of Certificate objects in the list.

Removes a Certificate from the CertificateList.

cert

a Certificate

Returns

true if the specified Certificate was removed or false otherwise.

Removes a Certificate from the CertificateList at the specified index.

index

index of the certificate to remove

Returns

true if a Certificate was removed or false otherwise.

Sets the Certificate at the specified index to cert.

index

index of Certificate to set

cert

a Certificate

Implementors