Skip to content

Is this compatible with mio API v1.0? #49

@markusdd

Description

@markusdd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions