pub struct Pinger<V: IpVersion> { /* private fields */ }Implementations§
Source§impl<V: IpVersion> Pinger<V>
impl<V: IpVersion> Pinger<V>
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Construct a new Pinger.
For maximum efficiency the same instance of Pinger should
be used for as long as possible, altough it might also
be beneficial to Drop the Pinger and recreate it if
you are not going to be sending pings for a long period of time.
Sourcepub fn measure_many<I>(&self, addresses: I) -> MeasureManyStream<'_, V, I>where
I: Iterator<Item = V>,
pub fn measure_many<I>(&self, addresses: I) -> MeasureManyStream<'_, V, I>where
I: Iterator<Item = V>,
Ping addresses
Creates MeasureManyStream which lazily sends ping
requests and Streams the responses as they arrive.
Auto Trait Implementations§
impl<V> Freeze for Pinger<V>
impl<V> !RefUnwindSafe for Pinger<V>
impl<V> Send for Pinger<V>
impl<V> Sync for Pinger<V>
impl<V> Unpin for Pinger<V>
impl<V> !UnwindSafe for Pinger<V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more