pub struct DemoMiddleware {
pub service: Arc<DemoService>,
}
Expand description
Demo middleware that uses IoC container for dependency injection
Fields§
§service: Arc<DemoService>
Implementations§
Source§impl DemoMiddleware
impl DemoMiddleware
pub fn from_ioc_container( container: &IocContainer, _scope: Option<&ScopeId>, ) -> Result<Self, String>
pub fn process_request(&self, request: &str) -> String
Auto Trait Implementations§
impl Freeze for DemoMiddleware
impl RefUnwindSafe for DemoMiddleware
impl Send for DemoMiddleware
impl Sync for DemoMiddleware
impl Unpin for DemoMiddleware
impl UnwindSafe for DemoMiddleware
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more