Trait gmime::StreamFilterExt[][src]

pub trait StreamFilterExt {
    fn add<P: IsA<Filter>>(&self, filter: &P) -> i32;
fn get_owner(&self) -> bool;
fn remove(&self, id: i32);
fn set_owner(&self, owner: bool); }

Trait containing all StreamFilter methods.

Implementors

StreamFilter

Required Methods

Adds filter to self. Filters are applied in the same order in which they are added.

filter

a Filter

Returns

an id for the filter.

Gets whether or not self owns the source stream.

Returns

true if self owns the source stream or false otherwise.

Removed a filter from the stream based on the id (as returned from filter_add).

id

filter id

Sets whether or not self owns the source stream..

Note: owner should be true if the stream should close the backend source stream when destroyed or false otherwise.

owner

true if this stream should own the source stream or false otherwise

Implementors