pub struct PolledCompletion {
pub interval: Duration,
pub timeout: Option<Duration>,
}Fields§
§interval: Duration§timeout: Option<Duration>Hard cap on total wait time. None = unbounded. The bound
is necessary because a stuck driver could otherwise spin
forever; default 5 minutes.
Implementations§
Trait Implementations§
Source§impl Clone for PolledCompletion
impl Clone for PolledCompletion
Source§fn clone(&self) -> PolledCompletion
fn clone(&self) -> PolledCompletion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolledCompletion
impl Debug for PolledCompletion
Auto Trait Implementations§
impl Freeze for PolledCompletion
impl RefUnwindSafe for PolledCompletion
impl Send for PolledCompletion
impl Sync for PolledCompletion
impl Unpin for PolledCompletion
impl UnsafeUnpin for PolledCompletion
impl UnwindSafe for PolledCompletion
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