Trait cataclysm::Extractor [−][src]
pub trait Extractor<T: Sync>: Send + Sized + 'static {
fn extract(
req: &Request,
additional: Arc<Additional<T>>
) -> Result<Self, Error>;
}
Expand description
Extractor trait
You could, if you wish, implement your own Extractor for other classes, which will allow you to construct an instance of Self
from the Request
, and from the additional information provided to this call through the Additional structure. The Extractor takes place during the request processing steps when the callback contains such extractor as argument.