Compiling mio v0.8.10 error[E0425]: cannot find value `listener` in this scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/listener.rs:74:24 | 74 | set_reuseaddr(&listener.inner, true)?; | ^^^^^^^^ help: a function with a similar name exists: `listen` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/sys/shell/tcp.rs:20:1 | 20 | pub(crate) fn listen(_: &net::TcpListener, _: u32) -> io::Result<()> { | -------------------------------------------------------------------- similarly named function `listen` defined here error[E0425]: cannot find value `listener` in this scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/listener.rs:76:15 | 76 | bind(&listener.inner, addr)?; | ^^^^^^^^ help: a function with a similar name exists: `listen` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/sys/shell/tcp.rs:20:1 | 20 | pub(crate) fn listen(_: &net::TcpListener, _: u32) -> io::Result<()> { | -------------------------------------------------------------------- similarly named function `listen` defined here error[E0425]: cannot find value `listener` in this scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/listener.rs:77:17 | 77 | listen(&listener.inner, 1024)?; | ^^^^^^^^ help: a function with a similar name exists: `listen` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/sys/shell/tcp.rs:20:1 | 20 | pub(crate) fn listen(_: &net::TcpListener, _: u32) -> io::Result<()> { | -------------------------------------------------------------------- similarly named function `listen` defined here error[E0425]: cannot find value `listener` in this scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/listener.rs:78:12 | 78 | Ok(listener) | ^^^^^^^^ help: a function with a similar name exists: `listen` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/sys/shell/tcp.rs:20:1 | 20 | pub(crate) fn listen(_: &net::TcpListener, _: u32) -> io::Result<()> { | -------------------------------------------------------------------- similarly named function `listen` defined here error[E0425]: cannot find value `stream` in this scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/stream.rs:90:18 | 90 | connect(&stream.inner, addr)?; | ^^^^^^ not found in this scope error[E0425]: cannot find value `stream` in this scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/stream.rs:91:12 | 91 | Ok(stream) | ^^^^^^ not found in this scope error[E0425]: cannot find function `set_reuseaddr` in this scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/listener.rs:74:9 | 74 | set_reuseaddr(&listener.inner, true)?; | ^^^^^^^^^^^^^ not found in this scope error[E0599]: no method named `register` found for struct `IoSource` in the current scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/listener.rs:146:20 | 146 | self.inner.register(registry, token, interests) | ^^^^^^^^ method not found in `IoSource` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:62:1 | 62 | pub struct IoSource { | ---------------------- method `register` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope note: `Source` defines an item `register`, perhaps you need to implement it --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/source.rs:75:1 | 75 | pub trait Source { | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `reregister` found for struct `IoSource` in the current scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/listener.rs:155:20 | 155 | self.inner.reregister(registry, token, interests) | ^^^^^^^^^^ method not found in `IoSource` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:62:1 | 62 | pub struct IoSource { | ---------------------- method `reregister` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope note: `Source` defines an item `reregister`, perhaps you need to implement it --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/source.rs:75:1 | 75 | pub trait Source { | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `deregister` found for struct `IoSource` in the current scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/listener.rs:159:20 | 159 | self.inner.deregister(registry) | ^^^^^^^^^^ method not found in `IoSource` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:62:1 | 62 | pub struct IoSource { | ---------------------- method `deregister` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope note: `Source` defines an item `deregister`, perhaps you need to implement it --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/source.rs:75:1 | 75 | pub trait Source { | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `register` found for struct `IoSource` in the current scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/stream.rs:325:20 | 325 | self.inner.register(registry, token, interests) | ^^^^^^^^ method not found in `IoSource` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:62:1 | 62 | pub struct IoSource { | ---------------------- method `register` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope note: `Source` defines an item `register`, perhaps you need to implement it --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/source.rs:75:1 | 75 | pub trait Source { | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `reregister` found for struct `IoSource` in the current scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/stream.rs:334:20 | 334 | self.inner.reregister(registry, token, interests) | ^^^^^^^^^^ method not found in `IoSource` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:62:1 | 62 | pub struct IoSource { | ---------------------- method `reregister` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope note: `Source` defines an item `reregister`, perhaps you need to implement it --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/source.rs:75:1 | 75 | pub trait Source { | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `deregister` found for struct `IoSource` in the current scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/stream.rs:338:20 | 338 | self.inner.deregister(registry) | ^^^^^^^^^^ method not found in `IoSource` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:62:1 | 62 | pub struct IoSource { | ---------------------- method `deregister` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope note: `Source` defines an item `deregister`, perhaps you need to implement it --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/source.rs:75:1 | 75 | pub trait Source { | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `register` found for struct `IoSource` in the current scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/udp.rs:622:20 | 622 | self.inner.register(registry, token, interests) | ^^^^^^^^ method not found in `IoSource` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:62:1 | 62 | pub struct IoSource { | ---------------------- method `register` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope note: `Source` defines an item `register`, perhaps you need to implement it --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/source.rs:75:1 | 75 | pub trait Source { | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `reregister` found for struct `IoSource` in the current scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/udp.rs:631:20 | 631 | self.inner.reregister(registry, token, interests) | ^^^^^^^^^^ method not found in `IoSource` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:62:1 | 62 | pub struct IoSource { | ---------------------- method `reregister` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope note: `Source` defines an item `reregister`, perhaps you need to implement it --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/source.rs:75:1 | 75 | pub trait Source { | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `deregister` found for struct `IoSource` in the current scope --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/udp.rs:635:20 | 635 | self.inner.deregister(registry) | ^^^^^^^^^^ method not found in `IoSource` | ::: /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:62:1 | 62 | pub struct IoSource { | ---------------------- method `deregister` not found for this struct | = help: items from traits can only be used if the trait is implemented and in scope note: `Source` defines an item `deregister`, perhaps you need to implement it --> /home/karo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/source.rs:75:1 | 75 | pub trait Source { | ^^^^^^^^^^^^^^^^ Some errors have detailed explanations: E0425, E0599. For more information about an error, try `rustc --explain E0425`. error: could not compile `mio` (lib) due to 16 previous errors