pub struct Context<'borrow, 'app: 'borrow, 'd: 'app, P: ?Sized> { /* private fields */ }Expand description
The exact selected provider and its application lifetime, issued together.
The short provider borrow cannot escape into a client. Private construction prevents rebuilding this capability with a different provider.
Implementations§
Source§impl<'borrow, 'app: 'borrow, 'd: 'app, P: ?Sized> Context<'borrow, 'app, 'd, P>
impl<'borrow, 'app: 'borrow, 'd: 'app, P: ?Sized> Context<'borrow, 'app, 'd, P>
pub fn into_parts(self) -> (Pin<&'borrow P>, Bound<'app, 'd, P>)
Auto Trait Implementations§
impl<'borrow, 'app, 'd, P> !Send for Context<'borrow, 'app, 'd, P>
impl<'borrow, 'app, 'd, P> !Sync for Context<'borrow, 'app, 'd, P>
impl<'borrow, 'app, 'd, P> Forget for Context<'borrow, 'app, 'd, P>where
P: ?Sized,
impl<'borrow, 'app, 'd, P> Freeze for Context<'borrow, 'app, 'd, P>
impl<'borrow, 'app, 'd, P> RefUnwindSafe for Context<'borrow, 'app, 'd, P>
impl<'borrow, 'app, 'd, P> Unpin for Context<'borrow, 'app, 'd, P>
impl<'borrow, 'app, 'd, P> UnsafeUnpin for Context<'borrow, 'app, 'd, P>
impl<'borrow, 'app, 'd, P> UnwindSafe for Context<'borrow, 'app, 'd, P>
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