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]
&mut self,
value: T
) -> Option<Box<dyn RequestParameter>>
Expand description
Adds an argument for a service. See the docs for Arg<T>
.