pub enum DeviceId<'a> {
Index(usize),
Serial(&'a str),
Fd(i32),
}Variants§
Trait Implementations§
impl<'a> Eq for DeviceId<'a>
impl<'a> StructuralPartialEq for DeviceId<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeviceId<'a>
impl<'a> RefUnwindSafe for DeviceId<'a>
impl<'a> Send for DeviceId<'a>
impl<'a> Sync for DeviceId<'a>
impl<'a> Unpin for DeviceId<'a>
impl<'a> UnwindSafe for DeviceId<'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