pub struct DeviceKey<'a> {
pub user: &'a str,
pub server: &'a str,
pub device: u16,
}Expand description
Borrowing key for device identity (user, server, device). Use with HashSet for O(1) lookups.
Fields§
§user: &'a str§server: &'a str§device: u16Trait Implementations§
impl<'a> Copy for DeviceKey<'a>
impl<'a> Eq for DeviceKey<'a>
impl<'a> StructuralPartialEq for DeviceKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeviceKey<'a>
impl<'a> RefUnwindSafe for DeviceKey<'a>
impl<'a> Send for DeviceKey<'a>
impl<'a> Sync for DeviceKey<'a>
impl<'a> Unpin for DeviceKey<'a>
impl<'a> UnsafeUnpin for DeviceKey<'a>
impl<'a> UnwindSafe for DeviceKey<'a>
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