Struct IdentifyControllerDataStructure

Source
#[repr(C)]
pub struct IdentifyControllerDataStructure {
Show 69 fields pub vendor: u16, pub subsystem_vendor_id: u16, pub serial_number: [u8; 20], pub model_number: [u8; 40], pub firmware_revision: u64, pub reccommended_arbitration_burst: u8, pub ieee_oui_identifier: [u8; 3], pub multipath_io_and_namespace_sharing_caps: MultipathIONamespaceSharingCaps, pub max_data_transfer_size: u8, pub controller_id: u16, pub version: u32, pub rtd3_resume_latency: Microseconds, pub rtd3_entry_latency: Microseconds, pub optional_async_events_supported: OptionalAsyncEventsSupported, pub controller_attributes: ControllerAttributes, pub read_recovery_levels_supported: ReadRecoveryLevelsSupported, pub res0: [u8; 9], pub controller_type: ControllerType, pub fru_globally_unique_identifier: u128, pub command_retry_delay_time_1: OneHundredMilliseconds, pub command_retry_delay_time_2: OneHundredMilliseconds, pub command_retry_delay_time_3: OneHundredMilliseconds, pub res1: [u8; 106], pub res2: [u8; 13], pub nvm_subsystem_report: NvmSubsystemReport, pub vpd_write_cycle_info: VPDWriteCycleInfo, pub management_endpoint_capabilities: ManagementEndpointCapabilities, pub optional_admin_command_support: OptionalAdminCommandSupport, pub abort_command_limit: u8, pub async_event_request_limit: u8, pub firmware_updates: FirmwareUpdates, pub log_page_attributes: LogPageAttributes, pub error_log_page_entries: u8, pub nr_power_states_support: u8, pub admin_vendor_specific_command_config: u8, pub autonomous_power_state_transition_attributes: u8, pub warning_composite_temp_threshold: u16, pub critical_composite_temp_threshold: u16, pub max_time_for_firmware_activation: OneHundredMilliseconds, pub host_memory_buffer_preferred_size: u32, pub host_memory_buffer_minimum_size: [u16; 2], pub total_nvm_capacity: [u32; 4], pub unallocated_nvm_capacity: [u32; 4], pub replay_protected_memory_block_support: ReplayProtectedMemoryBlockSupport, pub extended_device_self_test_time: Minutes, pub device_self_test_options: u8, pub firmware_upgrade_granularity: u8, pub keep_alive_support: OneHundredMilliseconds, pub host_controlled_thermal_management_attributes: u16, pub min_thermal_management_temp: u16, pub max_thermal_management_temp: u16, pub sanitize_capabilities: SanitizeCapabilities, pub host_memory_buffer_min_desc_entry_size: u32, pub host_memory_buffer_max_desc_entries: u16, pub nvm_set_ident_maximum: u16, pub endurance_group_ident_maximum: u16, pub res3: [u8; 170], pub sub_queue_entry_size: u8, pub com_queue_entry_size: u8, pub max_outstanding_cmds: u16, pub number_of_namespaces: u32, pub optional_cmd_support: u16, pub fused_operation_support: u16, pub format_nvm_attributes: u8, pub volatile_write_cache: u8, pub atomic_write_unit_normal: u16, pub atomic_write_unit_pfail: u16, pub _unsupported: [u8; 6], pub sgl_support: SglSupport, /* private fields */
}

Fields§

§vendor: u16§subsystem_vendor_id: u16§serial_number: [u8; 20]§model_number: [u8; 40]§firmware_revision: u64§reccommended_arbitration_burst: u8§ieee_oui_identifier: [u8; 3]§multipath_io_and_namespace_sharing_caps: MultipathIONamespaceSharingCaps§max_data_transfer_size: u8§controller_id: u16§version: u32§rtd3_resume_latency: Microseconds§rtd3_entry_latency: Microseconds§optional_async_events_supported: OptionalAsyncEventsSupported§controller_attributes: ControllerAttributes§read_recovery_levels_supported: ReadRecoveryLevelsSupported§res0: [u8; 9]§controller_type: ControllerType§fru_globally_unique_identifier: u128§command_retry_delay_time_1: OneHundredMilliseconds§command_retry_delay_time_2: OneHundredMilliseconds§command_retry_delay_time_3: OneHundredMilliseconds§res1: [u8; 106]§res2: [u8; 13]§nvm_subsystem_report: NvmSubsystemReport§vpd_write_cycle_info: VPDWriteCycleInfo§management_endpoint_capabilities: ManagementEndpointCapabilities§optional_admin_command_support: OptionalAdminCommandSupport§abort_command_limit: u8§async_event_request_limit: u8§firmware_updates: FirmwareUpdates§log_page_attributes: LogPageAttributes§error_log_page_entries: u8§nr_power_states_support: u8§admin_vendor_specific_command_config: u8§autonomous_power_state_transition_attributes: u8§warning_composite_temp_threshold: u16§critical_composite_temp_threshold: u16§max_time_for_firmware_activation: OneHundredMilliseconds§host_memory_buffer_preferred_size: u32§host_memory_buffer_minimum_size: [u16; 2]§total_nvm_capacity: [u32; 4]§unallocated_nvm_capacity: [u32; 4]§replay_protected_memory_block_support: ReplayProtectedMemoryBlockSupport§extended_device_self_test_time: Minutes§device_self_test_options: u8§firmware_upgrade_granularity: u8§keep_alive_support: OneHundredMilliseconds§host_controlled_thermal_management_attributes: u16§min_thermal_management_temp: u16§max_thermal_management_temp: u16§sanitize_capabilities: SanitizeCapabilities§host_memory_buffer_min_desc_entry_size: u32§host_memory_buffer_max_desc_entries: u16§nvm_set_ident_maximum: u16§endurance_group_ident_maximum: u16§res3: [u8; 170]§sub_queue_entry_size: u8§com_queue_entry_size: u8§max_outstanding_cmds: u16§number_of_namespaces: u32§optional_cmd_support: u16§fused_operation_support: u16§format_nvm_attributes: u8§volatile_write_cache: u8§atomic_write_unit_normal: u16§atomic_write_unit_pfail: u16§_unsupported: [u8; 6]§sgl_support: SglSupport

Trait Implementations§

Source§

impl Clone for IdentifyControllerDataStructure

Source§

fn clone(&self) -> IdentifyControllerDataStructure

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for IdentifyControllerDataStructure

Source§

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

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

impl Default for IdentifyControllerDataStructure

Source§

fn default() -> Self

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

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.