Trait apalis::prelude::FromData

source ·
pub trait FromData: Sized + Clone + Send + Sync + 'static {
    // Provided method
    fn get(data: &Extensions) -> Self { ... }
}
Expand description

Allows getting some type from the Request data

Provided Methods§

source

fn get(data: &Extensions) -> Self

Gets the value

Object Safety§

This trait is not object safe.

Implementors§

source§

impl FromData for WorkerId

source§

impl<E> FromData for Context<E>
where E: Executor + Send + Clone + 'static + Sync,

source§

impl<T> FromData for Data<T>
where T: Clone + Send + Sync + 'static,