Enum fuchsia_driver_dev::Device
source · pub enum Device {
V1(DFv1Device),
V2(DFv2Node),
}
Variants§
V1(DFv1Device)
V2(DFv2Node)
Implementations§
source§impl Device
impl Device
pub fn get_device_info(&self) -> &NodeInfo
sourcepub fn get_full_name(&self) -> Result<&str>
pub fn get_full_name(&self) -> Result<&str>
Gets the full identifying path name of the device.
For V1 devices, that is the topological_path
.
For V2 devices, that is the moniker
.
sourcepub fn extract_name(&self) -> Result<&str>
pub fn extract_name(&self) -> Result<&str>
Gets the last ordinal of the identifying path name of the device.
For V1 devices, it would be the part of the string after the last /
.
For V2 devices, it would be the part of the string after the last .
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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