fix: forgot fmt
This commit is contained in:
parent
6d7a5f949c
commit
7d2ffa76e5
@ -579,7 +579,7 @@ pub mod ping {
|
|||||||
/// * `hop_limit` - The hop limit to be used by the socket.
|
/// * `hop_limit` - The hop limit to be used by the socket.
|
||||||
/// * `count` - The number of pings to be sent in one ping operation.
|
/// * `count` - The number of pings to be sent in one ping operation.
|
||||||
/// * `timeout` - The timeout duration before returning a [`PingError::DestinationHostUnreachable`] error.
|
/// * `timeout` - The timeout duration before returning a [`PingError::DestinationHostUnreachable`] error.
|
||||||
/// * `rate_limit` - The minimum time per echo request
|
/// * `rate_limit` - The minimum time per echo request.
|
||||||
pub struct PingParams<'a> {
|
pub struct PingParams<'a> {
|
||||||
target: Option<IpAddr>,
|
target: Option<IpAddr>,
|
||||||
#[cfg(feature = "proto-ipv6")]
|
#[cfg(feature = "proto-ipv6")]
|
||||||
@ -706,13 +706,13 @@ pub mod ping {
|
|||||||
self.timeout
|
self.timeout
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the `rate_limit`: minimum time per echo request
|
/// Sets the `rate_limit`: minimum time per echo request.
|
||||||
pub fn set_rate_limit(&mut self, rate_limit: Duration) -> &mut Self {
|
pub fn set_rate_limit(&mut self, rate_limit: Duration) -> &mut Self {
|
||||||
self.rate_limit = rate_limit;
|
self.rate_limit = rate_limit;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve the rate_limit
|
/// Retrieve the rate_limit.
|
||||||
pub fn rate_limit(&self) -> Duration {
|
pub fn rate_limit(&self) -> Duration {
|
||||||
self.rate_limit
|
self.rate_limit
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user