#[repr(C)]pub struct AsyncRingLayout {
pub sq_base: u64,
pub cq_base: u64,
pub sq_size: u64,
pub cq_size: u64,
pub entries: u32,
pub _reserved: u32,
}Expand description
Layout descriptor for async I/O ring buffers.
Describes the submission and completion queue regions within a shared memory page used by the async I/O subsystem.
Fields§
§sq_base: u64Physical address of the submission queue base.
cq_base: u64Physical address of the completion queue base.
sq_size: u64Size of the submission queue in bytes.
cq_size: u64Size of the completion queue in bytes.
entries: u32Number of entries in each queue.
_reserved: u32Trait Implementations§
Source§impl Clone for AsyncRingLayout
impl Clone for AsyncRingLayout
Source§fn clone(&self) -> AsyncRingLayout
fn clone(&self) -> AsyncRingLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AsyncRingLayout
Source§impl Debug for AsyncRingLayout
impl Debug for AsyncRingLayout
Source§impl FromBytes for AsyncRingLayout
impl FromBytes for AsyncRingLayout
Source§impl FromZeros for AsyncRingLayout
impl FromZeros for AsyncRingLayout
Source§impl IntoBytes for AsyncRingLayout
impl IntoBytes for AsyncRingLayout
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl TryFromBytes for AsyncRingLayout
impl TryFromBytes for AsyncRingLayout
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for AsyncRingLayout
impl RefUnwindSafe for AsyncRingLayout
impl Send for AsyncRingLayout
impl Sync for AsyncRingLayout
impl Unpin for AsyncRingLayout
impl UnsafeUnpin for AsyncRingLayout
impl UnwindSafe for AsyncRingLayout
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