pub struct ContextStacks { /* private fields */ }Expand description
Legacy-compatible dynamic stack storage whose mutable guard renews opaque entry identities on drop. Direct mutation therefore cannot bypass the ABA protection used by task-root snapshots.
Implementations§
Source§impl ContextStacks
impl ContextStacks
pub fn borrow(&self) -> Ref<'_, ContextStackMap>
pub fn borrow_mut(&self) -> ContextStacksMut<'_>
Trait Implementations§
Source§impl Default for ContextStacks
impl Default for ContextStacks
Source§fn default() -> ContextStacks
fn default() -> ContextStacks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ContextStacks
impl !RefUnwindSafe for ContextStacks
impl !Send for ContextStacks
impl !Sync for ContextStacks
impl Unpin for ContextStacks
impl UnsafeUnpin for ContextStacks
impl UnwindSafe for ContextStacks
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