Struct gmime::FilterFrom [−]
pub struct FilterFrom(_, _);
Methods
impl FilterFrom[src]
impl FilterFrompub fn new(mode: FilterFromMode) -> FilterFrom[src]
pub fn new(mode: FilterFromMode) -> FilterFromCreates a new GMimeFilterFrom filter. If mode is
FilterFromMode::Armor, the from-filter will encode from
lines using the quoted-printable encoding resulting in "=46rom ".
Using the FilterFromMode::Default or
FilterFromMode::Escape mode (they are the same), from lines
will be escaped to ">From ".
Note: If you plan on using a from-filter in mode ARMOR, you should
remember to also use a FilterBasic filter with an encoding of
ContentEncoding::Quotedprintable.
mode
filter mode
Returns
a new from filter with mode mode.
Trait Implementations
impl Clone for FilterFrom
impl Clone for FilterFromfn clone(&self) -> FilterFrom
fn clone(&self) -> FilterFromReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for FilterFrom
impl Debug for FilterFromfn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for FilterFrom
impl Hash for FilterFromfn hash<__H: Hasher>(&self, __arg_0: &mut __H)
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl StaticType for FilterFrom
impl StaticType for FilterFromfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for FilterFrom
impl<T: IsA<Object>> PartialEq<T> for FilterFromfn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for FilterFrom
impl Eq for FilterFromimpl IsA<Filter> for FilterFrom
impl IsA<Filter> for FilterFromimpl IsA<Object> for FilterFrom
impl IsA<Object> for FilterFromAuto Trait Implementations
impl !Send for FilterFrom
impl !Send for FilterFromimpl !Sync for FilterFrom
impl !Sync for FilterFrom