pub struct FutexRef(/* private fields */);
Expand description
An owned reference to a Futex
.
Implementations§
Source§impl FutexRef
impl FutexRef
pub fn ptr(&self) -> *mut Futex
pub fn physical_addr(&self) -> ManagedPhysicalMemoryAddr
pub fn wake(&self, num_wakeups: c_uint) -> c_uint
pub fn listener_count(&self) -> c_uint
Sourcepub fn into_c_ptr(self) -> *mut Futex
pub fn into_c_ptr(self) -> *mut Futex
Ownership of the reference is transferred to the returned pointer.
In otherwords, self
is dropped without changing the futex’s refcount, and the returned
pointer can be safely used. The refcount should be decremented when the returned pointer is
no longer used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FutexRef
impl RefUnwindSafe for FutexRef
impl Send for FutexRef
impl Sync for FutexRef
impl Unpin for FutexRef
impl UnwindSafe for FutexRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more