#[repr(C)]pub struct AtomicIoVec {
pub address: *const AtomicU8,
pub len: usize,
}
Expand description
A pointer/length pair that is ABI compatible with the iovec type on Linux.
Fields§
§address: *const AtomicU8
The address of the buffer.
len: usize
The length of the buffer in bytes.
Implementations§
Source§impl AtomicIoVec
impl AtomicIoVec
Sourcepub unsafe fn as_slice_unchecked(&self) -> &[AtomicU8]
pub unsafe fn as_slice_unchecked(&self) -> &[AtomicU8]
Trait Implementations§
Source§impl Clone for AtomicIoVec
impl Clone for AtomicIoVec
Source§fn clone(&self) -> AtomicIoVec
fn clone(&self) -> AtomicIoVec
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 AtomicIoVec
impl Debug for AtomicIoVec
Source§impl Default for AtomicIoVec
impl Default for AtomicIoVec
Source§impl From<&[AtomicU8]> for AtomicIoVec
impl From<&[AtomicU8]> for AtomicIoVec
impl Copy for AtomicIoVec
impl Send for AtomicIoVec
SAFETY: AtomicIoVec just represents a pointer and length and can be sent/accessed anywhere freely.
impl Sync for AtomicIoVec
Auto Trait Implementations§
impl Freeze for AtomicIoVec
impl RefUnwindSafe for AtomicIoVec
impl Unpin for AtomicIoVec
impl UnwindSafe for AtomicIoVec
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