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);
}Required Methods
fn add<P: IsA<Filter>>(&self, filter: &P) -> i32
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.
fn get_owner(&self) -> bool
Gets whether or not self owns the source stream.
Returns
true if self owns the source stream or false
otherwise.
fn remove(&self, id: i32)
fn set_owner(&self, owner: bool)
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
impl<O: IsA<StreamFilter>> StreamFilterExt for O