pub struct Context<'a, Req, C> { /* private fields */ }
Expand description
Specialized Request type State service factory.
This type enables borrow parent service request type as &Req and &mut Req
Implementations§
Trait Implementations§
Source§impl<T, Req, C> BorrowReqMut<T> for Context<'_, Req, C>where
Req: BorrowReqMut<T>,
impl<T, Req, C> BorrowReqMut<T> for Context<'_, Req, C>where
Req: BorrowReqMut<T>,
fn borrow_mut(&mut self) -> &mut T
Auto Trait Implementations§
impl<'a, Req, C> Freeze for Context<'a, Req, C>where
Req: Freeze,
impl<'a, Req, C> RefUnwindSafe for Context<'a, Req, C>where
Req: RefUnwindSafe,
C: RefUnwindSafe,
impl<'a, Req, C> Send for Context<'a, Req, C>
impl<'a, Req, C> Sync for Context<'a, Req, C>
impl<'a, Req, C> Unpin for Context<'a, Req, C>where
Req: Unpin,
impl<'a, Req, C> UnwindSafe for Context<'a, Req, C>where
Req: UnwindSafe,
C: RefUnwindSafe,
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