pub enum AhciDeviceType {
None,
Sata,
Satapi,
Semb,
PortMultiplier,
Unknown(u32),
}Expand description
Type of device attached to an AHCI port.
Variants§
None
No device detected.
Sata
SATA drive (hard disk or SSD).
Satapi
SATAPI device (optical drive, etc.).
Semb
Enclosure Management Bridge.
PortMultiplier
Port Multiplier.
Unknown(u32)
Unknown signature.
Implementations§
Source§impl AhciDeviceType
impl AhciDeviceType
Sourcepub fn from_signature(sig: u32) -> Self
pub fn from_signature(sig: u32) -> Self
Determine device type from port signature register value.
Trait Implementations§
Source§impl Clone for AhciDeviceType
impl Clone for AhciDeviceType
Source§fn clone(&self) -> AhciDeviceType
fn clone(&self) -> AhciDeviceType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AhciDeviceType
impl Debug for AhciDeviceType
Source§impl PartialEq for AhciDeviceType
impl PartialEq for AhciDeviceType
impl Copy for AhciDeviceType
impl Eq for AhciDeviceType
impl StructuralPartialEq for AhciDeviceType
Auto Trait Implementations§
impl Freeze for AhciDeviceType
impl RefUnwindSafe for AhciDeviceType
impl Send for AhciDeviceType
impl Sync for AhciDeviceType
impl Unpin for AhciDeviceType
impl UnwindSafe for AhciDeviceType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)