pub struct Sample<'a> {
pub key: &'a str,
pub delete: bool,
pub expired: bool,
pub not_incumbent: bool,
}Expand description
A sample of the role’s subscription, as the runtime hands it over.
Fields§
§key: &'a strIts key, base-relative (core §1.6).
delete: boolA delete sample, which is no arrival (timing.v1 §2.5).
expired: booltiming.v1 reads it expired, on the deployment’s stated bound
(timing.v1 §2.6).
not_incumbent: boolThe required interface is governed, and redundancy.v1 §2.10 does
not accept it.
Implementations§
Trait Implementations§
impl<'a> Copy for Sample<'a>
impl<'a> Eq for Sample<'a>
impl<'a> StructuralPartialEq for Sample<'a>
Auto Trait Implementations§
impl<'a> Forget for Sample<'a>
impl<'a> Freeze for Sample<'a>
impl<'a> Move for Sample<'a>
impl<'a> RefUnwindSafe for Sample<'a>
impl<'a> Send for Sample<'a>
impl<'a> Sync for Sample<'a>
impl<'a> Unpin for Sample<'a>
impl<'a> UnsafeUnpin for Sample<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for Sample<'a>where
&'a str: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more