#[non_exhaustive]pub struct Info {
pub port: String,
pub family: Family,
pub model: Option<String>,
pub firmware: Option<Firmware>,
pub id: Option<StableId>,
pub ferrum_api: Option<FerrumApi>,
pub peripheral: Option<UsbIds>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.port: Stringthe port the device was opened on, so you can show it or open the same box again with Connect::port
family: Family§model: Option<String>§firmware: Option<Firmware>§id: Option<StableId>§ferrum_api: Option<FerrumApi>which of Ferrum’s two APIs this is, none on other boxes
peripheral: Option<UsbIds>the USB ids of the device plugged into the box, which is the identity the box shows the PC, so you can tell which device on the PC goes through the box. a Ferrum on its Software API and a Medius report it, a MAKCU can’t and a YSC isn’t read yet. it’s read when you connect and again when what’s plugged in changes, so swapping one mouse for another within a second can leave the old ids here until the next reconnect
Trait Implementations§
impl Eq for Info
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnsafeUnpin for Info
impl UnwindSafe for Info
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