Trait PipelineContext

Source
pub trait PipelineContext {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
}
Expand description

Context type that is passed to each registered middleware function

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Allows for downcasting to an immutable reference of the known concrete type

Source

fn as_any_mut(&mut self) -> &mut dyn Any

Allows for downcasting to an mutable reference of the known concrete type

Implementors§