Struct fuchsia_driver_dev::DFv1Device
source · pub struct DFv1Device(pub NodeInfo);
Tuple Fields§
§0: NodeInfo
Implementations§
source§impl DFv1Device
impl DFv1Device
sourcepub fn get_topo_path(&self) -> Result<&str>
pub fn get_topo_path(&self) -> Result<&str>
Gets the full topological path name of the device.
sourcepub fn extract_name(&self) -> Result<&str>
pub fn extract_name(&self) -> Result<&str>
Gets the last ordinal of the device’s topological path.
For a topological_path
value of “/some/topo/path/foo/bar”, “bar” will be returned.
pub fn get_v1_info(&self) -> Result<&V1DeviceInfo>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DFv1Device
impl RefUnwindSafe for DFv1Device
impl Send for DFv1Device
impl Sync for DFv1Device
impl Unpin for DFv1Device
impl UnwindSafe for DFv1Device
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