pub struct PollSpec {
pub cadence: Duration,
pub jitter_pct: u8,
}Expand description
Polling cadence + anti-alignment jitter for REST-only stream kinds.
Returned by Kind::is_poll_only for kinds that have no WS feed and
must be driven by periodic REST calls.
Fields§
§cadence: DurationHow often to call the REST endpoint.
jitter_pct: u8Jitter applied to the FIRST tick only, expressed as percent of cadence.
Prevents N symbols × M exchanges all calling REST at the same wall-clock
second. Value 10 means first tick fires at cadence ± (cadence * 10 / 100).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PollSpec
impl RefUnwindSafe for PollSpec
impl Send for PollSpec
impl Sync for PollSpec
impl Unpin for PollSpec
impl UnsafeUnpin for PollSpec
impl UnwindSafe for PollSpec
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