#[non_exhaustive]pub struct ClaimPolicy {
pub max_wait: Option<Duration>,
}Expand description
Policy hints for claim. Minimal at Stage 0 per RFC-012 §3.3.0
(“Bikeshed-prone; keep minimal at Stage 0”). Future fields (retry
count, fairness hints) land additively.
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.max_wait: Option<Duration>Maximum blocking wait. None means backend-default (today:
non-blocking / immediate return).
Implementations§
Source§impl ClaimPolicy
impl ClaimPolicy
Sourcepub fn with_max_wait(max_wait: Duration) -> Self
pub fn with_max_wait(max_wait: Duration) -> Self
Claim with an explicit blocking bound.
Trait Implementations§
Source§impl Clone for ClaimPolicy
impl Clone for ClaimPolicy
Source§fn clone(&self) -> ClaimPolicy
fn clone(&self) -> ClaimPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClaimPolicy
impl Debug for ClaimPolicy
Source§impl Default for ClaimPolicy
impl Default for ClaimPolicy
Source§fn default() -> ClaimPolicy
fn default() -> ClaimPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClaimPolicy
impl PartialEq for ClaimPolicy
impl Eq for ClaimPolicy
impl StructuralPartialEq for ClaimPolicy
Auto Trait Implementations§
impl Freeze for ClaimPolicy
impl RefUnwindSafe for ClaimPolicy
impl Send for ClaimPolicy
impl Sync for ClaimPolicy
impl Unpin for ClaimPolicy
impl UnsafeUnpin for ClaimPolicy
impl UnwindSafe for ClaimPolicy
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