Trait runtime_injector_actix::WithArg[][src]

pub trait WithArg {
    fn with_arg<S, T>(
        &mut self,
        value: T
    ) -> Option<Box<dyn RequestParameter + 'static, Global>>
    where
        T: Service + AsAny + Clone,
        S: Service
; }
Expand description

Allows defining pre-defined arguments to services.

Required methods

fn with_arg<S, T>(
    &mut self,
    value: T
) -> Option<Box<dyn RequestParameter + 'static, Global>> where
    T: Service + AsAny + Clone,
    S: Service
[src]

Expand description

Adds an argument for a service. See the docs for Arg<T>.

Loading content...

Implementors

impl WithArg for InjectorBuilder[src]

pub fn with_arg<S, T>(
    &mut self,
    value: T
) -> Option<Box<dyn RequestParameter + 'static, Global>> where
    T: Service + AsAny + Clone,
    S: Service
[src]

impl WithArg for Module[src]

pub fn with_arg<S, T>(
    &mut self,
    value: T
) -> Option<Box<dyn RequestParameter + 'static, Global>> where
    T: Service + AsAny + Clone,
    S: Service
[src]

impl WithArg for RequestInfo[src]

pub fn with_arg<S, T>(
    &mut self,
    value: T
) -> Option<Box<dyn RequestParameter + 'static, Global>> where
    T: Service + AsAny + Clone,
    S: Service
[src]

Loading content...