mio-serial icon indicating copy to clipboard operation
mio-serial copied to clipboard

Is this compatible with mio API v1.0?

Open markusdd opened this issue 1 year ago • 0 comments

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.

image

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,
                            );

markusdd avatar Oct 24 '24 14:10 markusdd