Struct fuchsia_driver_dev::DFv2Node
source · pub struct DFv2Node(pub NodeInfo);
Tuple Fields§
§0: NodeInfo
Implementations§
source§impl DFv2Node
impl DFv2Node
sourcepub fn get_moniker(&self) -> Result<&str>
pub fn get_moniker(&self) -> Result<&str>
Gets the full moniker 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 moniker.
For a moniker
value of “this.is.a.moniker.foo.bar”, “bar” will be returned.
pub fn get_v2_info(&self) -> Result<&V2NodeInfo>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DFv2Node
impl RefUnwindSafe for DFv2Node
impl Send for DFv2Node
impl Sync for DFv2Node
impl Unpin for DFv2Node
impl UnwindSafe for DFv2Node
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