pub struct InterruptingEngine<'a, E> { /* private fields */ }Implementations§
Source§impl<'a, E> InterruptingEngine<'a, E>where
E: PingEngine,
impl<'a, E> InterruptingEngine<'a, E>where
E: PingEngine,
pub fn new( inner: &'a mut E, interrupt_requested: &'a AtomicBool, poll_slice: Duration, ) -> Self
Trait Implementations§
Source§impl<E> PingEngine for InterruptingEngine<'_, E>where
E: PingEngine,
impl<E> PingEngine for InterruptingEngine<'_, E>where
E: PingEngine,
fn now(&self) -> EngineTime
fn send_probe(&mut self, request: ProbeRequest) -> Result<(), PingEngineError>
Source§fn poll_until(
&mut self,
deadline: EngineTime,
) -> Result<Vec<TimedEvent>, PingEngineError>
fn poll_until( &mut self, deadline: EngineTime, ) -> Result<Vec<TimedEvent>, PingEngineError>
Polls for the next event up to
deadline. Read moreAuto Trait Implementations§
impl<'a, E> Freeze for InterruptingEngine<'a, E>
impl<'a, E> RefUnwindSafe for InterruptingEngine<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for InterruptingEngine<'a, E>where
E: Send,
impl<'a, E> Sync for InterruptingEngine<'a, E>where
E: Sync,
impl<'a, E> Unpin for InterruptingEngine<'a, E>
impl<'a, E> UnsafeUnpin for InterruptingEngine<'a, E>
impl<'a, E> !UnwindSafe for InterruptingEngine<'a, E>
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