#[non_exhaustive]pub struct OfferPolicy {
pub resync_us: u64,
pub allow_downgrade: bool,
}Expand description
Parameters of the replacement rule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resync_us: u64An anchor older than this is replaced by any same-source sample.
allow_downgrade: boolLet a less trusted source replace a more trusted one (the better one has failed for the configured wait).
Implementations§
Trait Implementations§
Source§impl Clone for OfferPolicy
impl Clone for OfferPolicy
impl Copy for OfferPolicy
Source§impl Debug for OfferPolicy
impl Debug for OfferPolicy
impl Eq for OfferPolicy
Source§impl PartialEq for OfferPolicy
impl PartialEq for OfferPolicy
impl StructuralPartialEq for OfferPolicy
Auto Trait Implementations§
impl Forget for OfferPolicy
impl Freeze for OfferPolicy
impl RefUnwindSafe for OfferPolicy
impl Send for OfferPolicy
impl Sync for OfferPolicy
impl Unpin for OfferPolicy
impl UnsafeUnpin for OfferPolicy
impl UnwindSafe for OfferPolicy
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