pub struct DualstackPinger { /* private fields */ }Implementations§
Source§impl DualstackPinger
impl DualstackPinger
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Construct a new DualstackPinger.
For maximum efficiency the same instance of DualstackPinger should
be used for as long as possible, altough it might also
be beneficial to Drop the DualstackPinger 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) -> DualstackMeasureManyStream<'_, I>
pub fn measure_many<I>(&self, addresses: I) -> DualstackMeasureManyStream<'_, I>
Ping addresses
Creates DualstackMeasureManyStream which lazily sends ping
requests and Streams the responses as they arrive.
Auto Trait Implementations§
impl Freeze for DualstackPinger
impl !RefUnwindSafe for DualstackPinger
impl Send for DualstackPinger
impl Sync for DualstackPinger
impl Unpin for DualstackPinger
impl !UnwindSafe for DualstackPinger
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