pub struct Guard { /* private fields */ }Expand description
A guard that pins the current thread to an epoch.
Implementations§
Source§impl Guard
impl Guard
Sourcepub fn new(node: *mut ThreadStateNode) -> Self
pub fn new(node: *mut ThreadStateNode) -> Self
Create a new Guard using the explicitly provided ThreadStateNode.
pub unsafe fn unpinned(node: *mut ThreadStateNode) -> Self
pub unsafe fn dummy() -> Self
Sourcepub fn node(&self) -> *mut ThreadStateNode
pub fn node(&self) -> *mut ThreadStateNode
Get the underlying ThreadStateNode pointer.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Guard
impl !Send for Guard
impl !Sync for Guard
impl !UnwindSafe for Guard
impl Freeze for Guard
impl Unpin for Guard
impl UnsafeUnpin for Guard
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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