Trait apalis_core::service_fn::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: Executor + Send + Clone + 'static + Sync> FromData for Context<E>

source§

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