pub struct PollConfig {
pub attempts: u32,
pub delay: Duration,
}Expand description
Configuration for check-status polling.
Used by wait_for_confirmed and wait_for_finalized.
Fields§
§attempts: u32Number of attempts before timing out.
delay: DurationDelay between attempts.
Trait Implementations§
Source§impl Clone for PollConfig
impl Clone for PollConfig
Source§fn clone(&self) -> PollConfig
fn clone(&self) -> PollConfig
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 PollConfig
impl Debug for PollConfig
Auto Trait Implementations§
impl Freeze for PollConfig
impl RefUnwindSafe for PollConfig
impl Send for PollConfig
impl Sync for PollConfig
impl Unpin for PollConfig
impl UnsafeUnpin for PollConfig
impl UnwindSafe for PollConfig
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