pub struct LocalDevice(/* private fields */);Expand description
This database’s own Device, as a device-qualified reference names it.
Taken from ObjectDatabase::local_device under the caller’s database
guard, so it holds only while that guard does.
Implementations§
Source§impl LocalDevice
impl LocalDevice
Sourcepub fn identifier(self) -> Option<ObjectIdentifier>
pub fn identifier(self) -> Option<ObjectIdentifier>
The Device identifier that names this device. None when the
database holds no Device, or only the wildcard instance, which names
no particular device.
Sourcepub fn is_local(self, device: Option<ObjectIdentifier>) -> bool
pub fn is_local(self, device: Option<ObjectIdentifier>) -> bool
Whether a reference whose optional Device member is device points
inside this device: it names no device, or it names this one.
Trait Implementations§
Source§impl Clone for LocalDevice
impl Clone for LocalDevice
impl Copy for LocalDevice
Source§impl Debug for LocalDevice
impl Debug for LocalDevice
impl Eq for LocalDevice
Source§impl PartialEq for LocalDevice
impl PartialEq for LocalDevice
impl StructuralPartialEq for LocalDevice
Auto Trait Implementations§
impl Freeze for LocalDevice
impl RefUnwindSafe for LocalDevice
impl Send for LocalDevice
impl Sync for LocalDevice
impl Unpin for LocalDevice
impl UnsafeUnpin for LocalDevice
impl UnwindSafe for LocalDevice
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