Struct gmime::FilterFrom [−]
pub struct FilterFrom(_, _);
Methods
impl FilterFrom
[src]
impl FilterFrom
pub fn new(mode: FilterFromMode) -> FilterFrom
[src]
pub fn new(mode: FilterFromMode) -> FilterFrom
Creates 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 FilterFrom
fn clone(&self) -> FilterFrom
fn clone(&self) -> FilterFrom
Returns 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 FilterFrom
fn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for FilterFrom
impl Hash for FilterFrom
fn 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 FilterFrom
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for FilterFrom
impl<T: IsA<Object>> PartialEq<T> for FilterFrom
fn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for FilterFrom
impl Eq for FilterFrom
impl IsA<Filter> for FilterFrom
impl IsA<Filter> for FilterFrom
impl IsA<Object> for FilterFrom
impl IsA<Object> for FilterFrom
Auto Trait Implementations
impl !Send for FilterFrom
impl !Send for FilterFrom
impl !Sync for FilterFrom
impl !Sync for FilterFrom