pub struct OpaquePthreadMutex { /* private fields */ }
Implementations§
Source§impl OpaquePthreadMutex
impl OpaquePthreadMutex
Sourcepub fn new_zeroed_on_heap() -> Self
pub fn new_zeroed_on_heap() -> Self
creates zeroed struct where the underlying c struct is on the heap
Sourcepub fn new_zeroed_on_stack() -> Self
pub fn new_zeroed_on_stack() -> Self
creates zeroed struct where the underlying c struct is on the stack (Use with care)
pub fn get_inner(&self) -> *mut _opaque_pthread_mutex_t
pub fn get_inner_mut(&self) -> &mut _opaque_pthread_mutex_t
pub fn get_inner_ref(&self) -> &_opaque_pthread_mutex_t
Trait Implementations§
Source§impl Clone for OpaquePthreadMutex
impl Clone for OpaquePthreadMutex
Source§fn clone(&self) -> OpaquePthreadMutex
fn clone(&self) -> OpaquePthreadMutex
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 OpaquePthreadMutex
impl Debug for OpaquePthreadMutex
Source§impl Deref for OpaquePthreadMutex
impl Deref for OpaquePthreadMutex
Source§impl From<&OpaquePthreadMutex> for *mut _opaque_pthread_mutex_t
impl From<&OpaquePthreadMutex> for *mut _opaque_pthread_mutex_t
Source§fn from(value: &OpaquePthreadMutex) -> Self
fn from(value: &OpaquePthreadMutex) -> Self
Converts to this type from the input type.
Source§impl From<*const _opaque_pthread_mutex_t> for OpaquePthreadMutex
impl From<*const _opaque_pthread_mutex_t> for OpaquePthreadMutex
Source§fn from(value: *const _opaque_pthread_mutex_t) -> Self
fn from(value: *const _opaque_pthread_mutex_t) -> Self
Converts to this type from the input type.
Source§impl From<*mut _opaque_pthread_mutex_t> for OpaquePthreadMutex
impl From<*mut _opaque_pthread_mutex_t> for OpaquePthreadMutex
Source§fn from(value: *mut _opaque_pthread_mutex_t) -> Self
fn from(value: *mut _opaque_pthread_mutex_t) -> Self
Converts to this type from the input type.
Source§impl From<OpaquePthreadMutex> for *mut _opaque_pthread_mutex_t
impl From<OpaquePthreadMutex> for *mut _opaque_pthread_mutex_t
Source§fn from(value: OpaquePthreadMutex) -> Self
fn from(value: OpaquePthreadMutex) -> Self
Converts to this type from the input type.
Source§impl From<OpaquePthreadMutex> for _opaque_pthread_mutex_t
impl From<OpaquePthreadMutex> for _opaque_pthread_mutex_t
Source§fn from(value: OpaquePthreadMutex) -> Self
fn from(value: OpaquePthreadMutex) -> Self
Converts to this type from the input type.
Source§impl From<_opaque_pthread_mutex_t> for OpaquePthreadMutex
impl From<_opaque_pthread_mutex_t> for OpaquePthreadMutex
Source§fn from(value: _opaque_pthread_mutex_t) -> Self
fn from(value: _opaque_pthread_mutex_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpaquePthreadMutex
impl !RefUnwindSafe for OpaquePthreadMutex
impl !Send for OpaquePthreadMutex
impl !Sync for OpaquePthreadMutex
impl Unpin for OpaquePthreadMutex
impl !UnwindSafe for OpaquePthreadMutex
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