Enum twizzler_abi::syscall::ThreadSyncReference
source · #[repr(C)]pub enum ThreadSyncReference {
ObjectRef(ObjID, usize),
Virtual(*const AtomicU64),
Virtual32(*const AtomicU32),
}
Expand description
A reference to a piece of data. May either be a non-realized persistent reference or a virtual address.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ThreadSyncReference
impl Clone for ThreadSyncReference
source§fn clone(&self) -> ThreadSyncReference
fn clone(&self) -> ThreadSyncReference
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThreadSyncReference
impl Debug for ThreadSyncReference
source§impl Hash for ThreadSyncReference
impl Hash for ThreadSyncReference
source§impl Ord for ThreadSyncReference
impl Ord for ThreadSyncReference
source§fn cmp(&self, other: &ThreadSyncReference) -> Ordering
fn cmp(&self, other: &ThreadSyncReference) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ThreadSyncReference> for ThreadSyncReference
impl PartialEq<ThreadSyncReference> for ThreadSyncReference
source§fn eq(&self, other: &ThreadSyncReference) -> bool
fn eq(&self, other: &ThreadSyncReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ThreadSyncReference> for ThreadSyncReference
impl PartialOrd<ThreadSyncReference> for ThreadSyncReference
source§fn partial_cmp(&self, other: &ThreadSyncReference) -> Option<Ordering>
fn partial_cmp(&self, other: &ThreadSyncReference) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ThreadSyncReference
impl Eq for ThreadSyncReference
impl Send for ThreadSyncReference
impl StructuralEq for ThreadSyncReference
impl StructuralPartialEq for ThreadSyncReference
Auto Trait Implementations§
impl !ObjSafe for ThreadSyncReference
impl RefUnwindSafe for ThreadSyncReference
impl !Sync for ThreadSyncReference
impl Unpin for ThreadSyncReference
impl UnwindSafe for ThreadSyncReference
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