pub struct PollOptions {
pub interval: Duration,
pub max_attempts: Option<usize>,
pub stop_on_error: bool,
}Fields§
§interval: Duration§max_attempts: Option<usize>§stop_on_error: boolTrait Implementations§
Source§impl Clone for PollOptions
impl Clone for PollOptions
Source§fn clone(&self) -> PollOptions
fn clone(&self) -> PollOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PollOptions
impl Debug for PollOptions
Auto Trait Implementations§
impl Freeze for PollOptions
impl RefUnwindSafe for PollOptions
impl Send for PollOptions
impl Sync for PollOptions
impl Unpin for PollOptions
impl UnsafeUnpin for PollOptions
impl UnwindSafe for PollOptions
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