Created
September 7, 2023 23:06
-
-
Save rcloran/abda671f0b3df02ddefa03d16e9e2196 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0277]: the trait bound `Pinger: AddrContainer<()>` is not satisfied | |
--> examples/ping.rs:19:23 | |
| | |
19 | pinger.add_ipaddr("8.8.8.8".parse()?); | |
| ---------- ^^^^^^^^^^^^^^^^^^ the trait `AddrContainer<()>` is not implemented for `Pinger` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the following other types implement trait `AddrContainer<T>`: | |
<Pinger as AddrContainer<&'a S>> | |
<Pinger as AddrContainer<IpAddr>> | |
note: required by a bound in `Pinger::add_ipaddr` | |
--> /Users/russell/src/fastping-rs/src/lib.rs:122:54 | |
| | |
122 | pub fn add_ipaddr<T>(&self, addr: T) where Self: AddrContainer<T> { | |
| ^^^^^^^^^^^^^^^^ required by this bound in `Pinger::add_ipaddr` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment