pub struct DeviceId { /* private fields */ }
Expand description
An identifier for PHY devices on an MDIO/MII bus.
Represents the kernel’s struct mdio_device_id
. This is used to find an appropriate
PHY driver.
Implementations§
source§impl DeviceId
impl DeviceId
sourcepub const fn new_with_exact_mask(id: u32) -> Self
pub const fn new_with_exact_mask(id: u32) -> Self
Creates a new instance with the exact match mask.
sourcepub const fn new_with_model_mask(id: u32) -> Self
pub const fn new_with_model_mask(id: u32) -> Self
Creates a new instance with the model match mask.
sourcepub const fn new_with_vendor_mask(id: u32) -> Self
pub const fn new_with_vendor_mask(id: u32) -> Self
Creates a new instance with the vendor match mask.
sourcepub const fn new_with_custom_mask(id: u32, mask: u32) -> Self
pub const fn new_with_custom_mask(id: u32, mask: u32) -> Self
Creates a new instance with a custom match mask.
sourcepub const fn new_with_driver<T: Driver>() -> Self
pub const fn new_with_driver<T: Driver>() -> Self
Creates a new instance from Driver
.
sourcepub const fn mask_as_int(&self) -> u32
pub const fn mask_as_int(&self) -> u32
Get a mask
as u32.
Auto Trait Implementations§
impl RefUnwindSafe for DeviceId
impl Send for DeviceId
impl Sync for DeviceId
impl Unpin for DeviceId
impl UnwindSafe for DeviceId
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