Repository navigation
anybox 0.2.0
my app needs these to move over to anybox, so here they are
what's new:
receivedon every event's stamp, when anybox got it, with the raw QPC on Windows. on a MAKCU it's taken right after the port read (19 to 72 us before your app sees it, checked on the box).arrivedis still there but on a Medius it's the box clock smoothed, so usereceivednext to a capturedevice.events_of(EventKinds::BUTTONS)and friends, a receiver only gets the kinds it asks for and the box only streams what someone wantsConnect::auto().can(Action::Move)opens the first box that can do what you need, andanybox::find()now tells you what each box can doclose()works on a device you share between threads, every call after it fails withError::ClosedInfo.portsays which port the box is on- the
mockfeature,Device::mock_mediusruns your code against the medius crate's mock box without a box plugged in, plus constructors for events and stamps so you can test your own handling
it's 0.x so a few types changed shape (the stamp, Dropped now says which kind), the compiler will tell you where
cargo add anybox-rs