Trait tsukuyomi::modifier::Modifier [−][src]
pub trait Modifier { fn before_handle(&self, input: &mut Input) -> BeforeHandle { ... } fn after_handle(
&self,
input: &mut Input,
result: Result<Output, Error>
) -> AfterHandle { ... } }
A trait representing a Modifier
.
See the module level documentation for details.
Provided Methods
fn before_handle(&self, input: &mut Input) -> BeforeHandle
Performs the process before calling the handler.
By default, this method does nothing.
fn after_handle(
&self,
input: &mut Input,
result: Result<Output, Error>
) -> AfterHandle
&self,
input: &mut Input,
result: Result<Output, Error>
) -> AfterHandle
Modifies the returned value from a handler.
By default, this method does nothing and immediately return the provided Output
.
Implementors
impl Modifier for JsonErrorHandler