Union rustix::io_uring::io_uring_user_data
source · [−]#[repr(C)]
pub union io_uring_user_data {
pub u64_: u64,
pub ptr: io_uring_ptr,
}
Available on crate feature
io_uring
only.Expand description
User data in the io_uring API.
io_uring
’s native API represents user_data
fields as u64
values. In
order to preserve strict-provenance, use a union which allows users to
optionally store pointers.
Fields
u64_: u64
An arbitrary u64
.
ptr: io_uring_ptr
A pointer.
Implementations
Trait Implementations
sourceimpl Clone for io_uring_user_data
impl Clone for io_uring_user_data
sourcefn clone(&self) -> io_uring_user_data
fn clone(&self) -> io_uring_user_data
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for io_uring_user_data
impl Debug for io_uring_user_data
sourceimpl Default for io_uring_user_data
impl Default for io_uring_user_data
impl Copy for io_uring_user_data
Auto Trait Implementations
impl RefUnwindSafe for io_uring_user_data
impl !Send for io_uring_user_data
impl !Sync for io_uring_user_data
impl Unpin for io_uring_user_data
impl UnwindSafe for io_uring_user_data
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more