diff options
Diffstat (limited to 'embassy-net/src')
| -rw-r--r-- | embassy-net/src/icmp.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-net/src/icmp.rs b/embassy-net/src/icmp.rs index dafe6ed8a..68f6fd536 100644 --- a/embassy-net/src/icmp.rs +++ b/embassy-net/src/icmp.rs | |||
| @@ -579,7 +579,7 @@ pub mod ping { | |||
| 579 | /// * `hop_limit` - The hop limit to be used by the socket. | 579 | /// * `hop_limit` - The hop limit to be used by the socket. |
| 580 | /// * `count` - The number of pings to be sent in one ping operation. | 580 | /// * `count` - The number of pings to be sent in one ping operation. |
| 581 | /// * `timeout` - The timeout duration before returning a [`PingError::DestinationHostUnreachable`] error. | 581 | /// * `timeout` - The timeout duration before returning a [`PingError::DestinationHostUnreachable`] error. |
| 582 | /// * `rate_limit` - The minimum time per echo request | 582 | /// * `rate_limit` - The minimum time per echo request. |
| 583 | pub struct PingParams<'a> { | 583 | pub struct PingParams<'a> { |
| 584 | target: Option<IpAddr>, | 584 | target: Option<IpAddr>, |
| 585 | #[cfg(feature = "proto-ipv6")] | 585 | #[cfg(feature = "proto-ipv6")] |
| @@ -706,13 +706,13 @@ pub mod ping { | |||
| 706 | self.timeout | 706 | self.timeout |
| 707 | } | 707 | } |
| 708 | 708 | ||
| 709 | /// Sets the `rate_limit`: minimum time per echo request | 709 | /// Sets the `rate_limit`: minimum time per echo request. |
| 710 | pub fn set_rate_limit(&mut self, rate_limit: Duration) -> &mut Self { | 710 | pub fn set_rate_limit(&mut self, rate_limit: Duration) -> &mut Self { |
| 711 | self.rate_limit = rate_limit; | 711 | self.rate_limit = rate_limit; |
| 712 | self | 712 | self |
| 713 | } | 713 | } |
| 714 | 714 | ||
| 715 | /// Retrieve the rate_limit | 715 | /// Retrieve the rate_limit. |
| 716 | pub fn rate_limit(&self) -> Duration { | 716 | pub fn rate_limit(&self) -> Duration { |
| 717 | self.rate_limit | 717 | self.rate_limit |
| 718 | } | 718 | } |
