Skip to main content

nvme_primary_ctrl_cap

Struct nvme_primary_ctrl_cap 

Source
#[repr(C)]
pub struct nvme_primary_ctrl_cap {
Show 18 fields pub cntlid: __le16, pub portid: __le16, pub crt: __u8, pub rsvd5: [__u8; 27], pub vqfrt: __le32, pub vqrfa: __le32, pub vqrfap: __le16, pub vqprt: __le16, pub vqfrsm: __le16, pub vqgran: __le16, pub rsvd48: [__u8; 16], pub vifrt: __le32, pub virfa: __le32, pub virfap: __le16, pub viprt: __le16, pub vifrsm: __le16, pub vigran: __le16, pub rsvd80: [__u8; 4016],
}
Expand description

struct nvme_primary_ctrl_cap - Identify - Controller Capabilities Structure @cntlid: Controller Identifier @portid: Port Identifier @crt: Controller Resource Types @rsvd5: reserved @vqfrt: VQ Resources Flexible Total @vqrfa: VQ Resources Flexible Assigned @vqrfap: VQ Resources Flexible Allocated to Primary @vqprt: VQ Resources Private Total @vqfrsm: VQ Resources Flexible Secondary Maximum @vqgran: VQ Flexible Resource Preferred Granularity @rsvd48: reserved @vifrt: VI Resources Flexible Total @virfa: VI Resources Flexible Assigned @virfap: VI Resources Flexible Allocated to Primary @viprt: VI Resources Private Total @vifrsm: VI Resources Flexible Secondary Maximum @vigran: VI Flexible Resource Preferred Granularity @rsvd80: reserved

Fields§

§cntlid: __le16§portid: __le16§crt: __u8§rsvd5: [__u8; 27]§vqfrt: __le32§vqrfa: __le32§vqrfap: __le16§vqprt: __le16§vqfrsm: __le16§vqgran: __le16§rsvd48: [__u8; 16]§vifrt: __le32§virfa: __le32§virfap: __le16§viprt: __le16§vifrsm: __le16§vigran: __le16§rsvd80: [__u8; 4016]

Trait Implementations§

Source§

impl Clone for nvme_primary_ctrl_cap

Source§

fn clone(&self) -> nvme_primary_ctrl_cap

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for nvme_primary_ctrl_cap

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for nvme_primary_ctrl_cap

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for nvme_primary_ctrl_cap

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.