mio-serial
mio-serial copied to clipboard
Is this compatible with mio API v1.0?
I was trying to bump the dependency versions in my project and when I bump the mio version to v1.0.2 from v0.8.11 the SerialStream I create doesn't work anymore in constructing the serial port.
I unfortunately wasn't able to find a deprecation/Migration document to mio v1.0.2 from the (apparently outdaten) 0.8.11 API.
Can you shed some light what's wrong here?
self.serial = mio_serial::new(&self.serial_port, self.baud_rate)
.open_native_async()
.ok();
if let Some(serial) = &mut self.serial {
let _ = self.poll.registry().register(
serial,
SERIAL_TOKEN,
Interest::READABLE | Interest::WRITABLE,
);