[][src]Struct mail::header_encoding::EncodeClosure

pub struct EncodeClosure<FN>(_)
where
    FN: 'static + Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError>
;

A wrapper for an closure making it implement EncodableInHeader.

Implementations

impl<FN> EncodeClosure<FN> where
    FN: 'static + Send + Sync + for<'b, 'a> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError>, 
[src]

pub fn new(closure: FN) -> EncodeClosure<FN>[src]

Trait Implementations

impl<FN> Clone for EncodeClosure<FN> where
    FN: 'static + Send + Sync + for<'b, 'a> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError>, 
[src]

impl<FN> Debug for EncodeClosure<FN> where
    FN: 'static + Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError>, 
[src]

impl<FN> EncodableInHeader for EncodeClosure<FN> where
    FN: 'static + Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError>, 
[src]

Auto Trait Implementations

impl<FN> RefUnwindSafe for EncodeClosure<FN> where
    FN: RefUnwindSafe

impl<FN> Send for EncodeClosure<FN>

impl<FN> Sync for EncodeClosure<FN>

impl<FN> Unpin for EncodeClosure<FN>

impl<FN> UnwindSafe for EncodeClosure<FN> where
    FN: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> HeaderTryFrom<T> for T[src]

impl<F, T> HeaderTryInto<T> for F where
    T: HeaderTryFrom<F>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.