#[repr(C)]
pub struct IdentifyControllerDataStructure {
Show 57 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: u32, pub total_nvm_capacity: u128, pub unallocated_nvm_capacity: u128, 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 ana_transition_time: Seconds, /* 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: u32§total_nvm_capacity: u128§unallocated_nvm_capacity: u128§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§ana_transition_time: Seconds

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.