Trait runtime_injector::WithArg[][src]

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

Allows defining pre-defined arguments to services.

Required methods

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

Expand description

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

Loading content...

Implementors

impl WithArg for InjectorBuilder[src]

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

impl WithArg for Module[src]

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

impl WithArg for RequestInfo[src]

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

Loading content...