[][src]Trait iron::modifier::Modifier

pub trait Modifier<F> where
    F: ?Sized
{ fn modify(self, &mut F); }

Allows use of the implemented type as an argument to Set::set.

This allows types to be used for ad-hoc overloading of Set::set to perform complex updates to the parameter of Modifier.

Required methods

fn modify(self, &mut F)

Modify F with self.

Loading content...

Implementations on Foreign Types

impl<X, M1, M2, M3, M4, M5> Modifier<X> for (M1, M2, M3, M4, M5) where
    M1: Modifier<X>,
    M2: Modifier<X>,
    M3: Modifier<X>,
    M4: Modifier<X>,
    M5: Modifier<X>, 
[src]

impl<X, M1, M2, M3, M4, M5, M6> Modifier<X> for (M1, M2, M3, M4, M5, M6) where
    M1: Modifier<X>,
    M2: Modifier<X>,
    M3: Modifier<X>,
    M4: Modifier<X>,
    M5: Modifier<X>,
    M6: Modifier<X>, 
[src]

impl<X, M1, M2, M3, M4> Modifier<X> for (M1, M2, M3, M4) where
    M1: Modifier<X>,
    M2: Modifier<X>,
    M3: Modifier<X>,
    M4: Modifier<X>, 
[src]

impl<X, M1, M2> Modifier<X> for (M1, M2) where
    M1: Modifier<X>,
    M2: Modifier<X>, 
[src]

impl<X, M1> Modifier<X> for (M1,) where
    M1: Modifier<X>, 
[src]

impl<X, M1, M2, M3> Modifier<X> for (M1, M2, M3) where
    M1: Modifier<X>,
    M2: Modifier<X>,
    M3: Modifier<X>, 
[src]

impl Modifier<Response> for Box<dyn WriteBody>[src]

impl Modifier<Response> for String[src]

impl Modifier<Response> for Vec<u8>[src]

impl<'a> Modifier<Response> for &'a str[src]

impl<'a> Modifier<Response> for &'a [u8][src]

impl Modifier<Response> for File[src]

impl<'a> Modifier<Response> for &'a Path[src]

fn modify(self, res: &mut Response)[src]

Set the body to the contents of the File at this path.

Panics

Panics if there is no file at the passed-in Path.

impl Modifier<Response> for PathBuf[src]

fn modify(self, res: &mut Response)[src]

Set the body to the contents of the File at this path.

Panics

Panics if there is no file at the passed-in Path.

Loading content...

Implementors

impl Modifier<Response> for Status[src]

impl Modifier<Response> for Mime[src]

impl Modifier<Response> for Redirect[src]

impl Modifier<Response> for RedirectRaw[src]

impl<'a, 'b, H> Modifier<Request<'a, 'b>> for Header<H> where
    H: Header + HeaderFormat
[src]

impl<H> Modifier<Response> for Header<H> where
    H: Header + HeaderFormat
[src]

impl<R: Read + Send + 'static> Modifier<Response> for BodyReader<R>[src]

Loading content...