pub struct AtomicFnPtr<F> { /* private fields */ }Implementations§
Source§impl AtomicFnPtr<extern "C" fn(addr: *mut c_void, len: usize, prot: i32, flags: i32, fildes: i32, off: usize) -> *mut c_void>
impl AtomicFnPtr<extern "C" fn(addr: *mut c_void, len: usize, prot: i32, flags: i32, fildes: i32, off: usize) -> *mut c_void>
pub const fn new(shadow_name: Option<&'static CStr>) -> Self
pub fn try_load( &self, ) -> Option<extern "C" fn(addr: *mut c_void, len: usize, prot: i32, flags: i32, fildes: i32, off: usize) -> *mut c_void>
pub fn store( &self, val: Option<extern "C" fn(addr: *mut c_void, len: usize, prot: i32, flags: i32, fildes: i32, off: usize) -> *mut c_void>, )
Source§impl AtomicFnPtr<extern "C" fn(old_ptr: *mut c_void, number: usize, size: usize) -> *mut c_void>
impl AtomicFnPtr<extern "C" fn(old_ptr: *mut c_void, number: usize, size: usize) -> *mut c_void>
pub const fn new(shadow_name: Option<&'static CStr>) -> Self
pub fn try_load( &self, ) -> Option<extern "C" fn(old_ptr: *mut c_void, number: usize, size: usize) -> *mut c_void>
pub fn store( &self, val: Option<extern "C" fn(old_ptr: *mut c_void, number: usize, size: usize) -> *mut c_void>, )
Auto Trait Implementations§
impl<F> !Freeze for AtomicFnPtr<F>
impl<F> RefUnwindSafe for AtomicFnPtr<F>where
F: RefUnwindSafe,
impl<F> Send for AtomicFnPtr<F>where
F: Send,
impl<F> Sync for AtomicFnPtr<F>where
F: Sync,
impl<F> Unpin for AtomicFnPtr<F>where
F: Unpin,
impl<F> UnwindSafe for AtomicFnPtr<F>where
F: UnwindSafe,
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> 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