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]
&mut self,
value: T
) -> Option<Box<dyn RequestParameter + 'static, Global>> where
T: Service + AsAny + Clone,
S: Service,
Expand description
Adds an argument for a service. See the docs for Arg<T>
.