pub struct PollerOptions<'a> {
pub context: Context<'a>,
pub frequency: Duration,
}Expand description
Options to create the Poller.
Fields§
§context: Context<'a>Allows customization of the method call.
frequency: DurationThe time to wait between polling intervals in absence of a retry-after header.
The default is 30 seconds. The minimum time enforced by Poller::new is 1 second.
Implementations§
Source§impl<'a> PollerOptions<'a>
impl<'a> PollerOptions<'a>
Sourcepub fn into_owned(self) -> PollerOptions<'static>
pub fn into_owned(self) -> PollerOptions<'static>
Converts these poller options into an owned form so they can outlive the current scope.
Trait Implementations§
Source§impl<'a> Clone for PollerOptions<'a>
impl<'a> Clone for PollerOptions<'a>
Source§fn clone(&self) -> PollerOptions<'a>
fn clone(&self) -> PollerOptions<'a>
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<'a> Debug for PollerOptions<'a>
impl<'a> Debug for PollerOptions<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PollerOptions<'a>
impl<'a> !UnwindSafe for PollerOptions<'a>
impl<'a> Freeze for PollerOptions<'a>
impl<'a> Send for PollerOptions<'a>
impl<'a> Sync for PollerOptions<'a>
impl<'a> Unpin for PollerOptions<'a>
impl<'a> UnsafeUnpin for PollerOptions<'a>
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