#[non_exhaustive]#[repr(C)]pub struct io_uring_ptr {
pub ptr: *mut c_void,
}
Available on crate feature
io_uring
only.Expand description
A pointer in the io_uring API.
io_uring
’s native API represents pointers as u64
values. In order to
preserve strict-provenance, use a *mut c_void
. On platforms where
pointers are narrower than 64 bits, this requires additional padding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.ptr: *mut c_void
The pointer value.
Implementations§
Trait Implementations§
Source§impl Clone for io_uring_ptr
impl Clone for io_uring_ptr
Source§fn clone(&self) -> io_uring_ptr
fn clone(&self) -> io_uring_ptr
Returns a duplicate 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 io_uring_ptr
impl Debug for io_uring_ptr
Source§impl Default for io_uring_ptr
impl Default for io_uring_ptr
Source§impl Hash for io_uring_ptr
impl Hash for io_uring_ptr
Source§impl Ord for io_uring_ptr
impl Ord for io_uring_ptr
Source§impl PartialEq for io_uring_ptr
impl PartialEq for io_uring_ptr
Source§impl PartialOrd for io_uring_ptr
impl PartialOrd for io_uring_ptr
Source§impl Pointer for io_uring_ptr
impl Pointer for io_uring_ptr
impl Copy for io_uring_ptr
impl Eq for io_uring_ptr
Auto Trait Implementations§
impl Freeze for io_uring_ptr
impl RefUnwindSafe for io_uring_ptr
impl !Send for io_uring_ptr
impl !Sync for io_uring_ptr
impl Unpin for io_uring_ptr
impl UnwindSafe for io_uring_ptr
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