pub struct ContextRef<'a> { /* private fields */ }Expand description
A mutable reference to a context being created or destroyed.
Implementations§
Source§impl ContextRef<'_>
impl ContextRef<'_>
Sourcepub fn parent(&self) -> Option<&Context>
pub fn parent(&self) -> Option<&Context>
Get the parent context of this context.
See Context::parent for more details.
Sourcepub fn extensions(&self) -> &Extensions
pub fn extensions(&self) -> &Extensions
Get a read-only reference to the extensions of this context.
Sourcepub fn extensions_mut(&mut self) -> &mut Extensions
pub fn extensions_mut(&mut self) -> &mut Extensions
Get a mutable reference to the extensions of this context.
Auto Trait Implementations§
impl<'a> Freeze for ContextRef<'a>
impl<'a> !RefUnwindSafe for ContextRef<'a>
impl<'a> Send for ContextRef<'a>
impl<'a> Sync for ContextRef<'a>
impl<'a> Unpin for ContextRef<'a>
impl<'a> !UnwindSafe for ContextRef<'a>
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