pub struct GithubPollingPolicy { /* private fields */ }Expand description
One bounded policy shared by run discovery and terminal-run polling.
Implementations§
Source§impl GithubPollingPolicy
impl GithubPollingPolicy
Sourcepub fn new(
attempts: u16,
interval: Duration,
) -> Result<Self, TransportConfigError>
pub fn new( attempts: u16, interval: Duration, ) -> Result<Self, TransportConfigError>
Construct a policy using the same attempt count and interval for discovery and polling.
§Errors
Returns the transport’s typed configuration error for attempts outside 1–2000 or an interval outside 250 milliseconds through 60 seconds.
Sourcepub fn secure_defaults() -> Self
pub fn secure_defaults() -> Self
Five-second checks bounded to 1,440 attempts and two hours.
§Panics
Panics only if these compile-time constants stop satisfying PollPolicy invariants.
Sourcepub const fn transport(self) -> PollPolicy
pub const fn transport(self) -> PollPolicy
Transport policy used after exact run mapping.
Sourcepub const fn discovery_attempts(self) -> u16
pub const fn discovery_attempts(self) -> u16
Maximum exact run-discovery attempts.
Sourcepub const fn discovery_window_ms(self) -> u64
pub const fn discovery_window_ms(self) -> u64
Maximum wall-clock run-discovery window.
Trait Implementations§
Source§impl Clone for GithubPollingPolicy
impl Clone for GithubPollingPolicy
impl Copy for GithubPollingPolicy
Source§impl Debug for GithubPollingPolicy
impl Debug for GithubPollingPolicy
impl Eq for GithubPollingPolicy
Source§impl PartialEq for GithubPollingPolicy
impl PartialEq for GithubPollingPolicy
impl StructuralPartialEq for GithubPollingPolicy
Auto Trait Implementations§
impl Freeze for GithubPollingPolicy
impl RefUnwindSafe for GithubPollingPolicy
impl Send for GithubPollingPolicy
impl Sync for GithubPollingPolicy
impl Unpin for GithubPollingPolicy
impl UnsafeUnpin for GithubPollingPolicy
impl UnwindSafe for GithubPollingPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.