pub struct VerifyPoll<'a> {
pub expected_basename: &'a str,
pub previous_basename: Option<&'a str>,
pub interval: Duration,
pub budget: Duration,
}Expand description
previous_basename = Some(p) enables hard-mismatch detection: any third
basename -> FlippedToUnexpected immediately. Rollback path leaves it None
(no meaningful pre-state). Read errors during polling are non-fatal.
Fields§
§expected_basename: &'a str§previous_basename: Option<&'a str>§interval: Duration§budget: DurationImplementations§
Source§impl<'a> VerifyPoll<'a>
impl<'a> VerifyPoll<'a>
pub fn new(expected_basename: &'a str) -> Self
pub fn with_previous(self, previous: &'a str) -> Self
Sourcepub async fn until_settled(&self) -> PollOutcome
pub async fn until_settled(&self) -> PollOutcome
Pure: no logging, deterministic timing.
Auto Trait Implementations§
impl<'a> Freeze for VerifyPoll<'a>
impl<'a> RefUnwindSafe for VerifyPoll<'a>
impl<'a> Send for VerifyPoll<'a>
impl<'a> Sync for VerifyPoll<'a>
impl<'a> Unpin for VerifyPoll<'a>
impl<'a> UnwindSafe for VerifyPoll<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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