pub struct Device(pub NodeInfo);
Tuple Fields§
§0: NodeInfo
Implementations§
Source§impl Device
impl Device
Sourcepub fn get_moniker(&self) -> Result<&str>
pub fn get_moniker(&self) -> Result<&str>
Gets the full moniker name of the device.
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.
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.
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