pub enum RequestIdPolicy {
Retain,
Protected,
Discard,
}Expand description
Lifecycle policy for provider request identifiers.
Variants§
Retain
The identifier may move into a cleanup-owning retained metadata value.
Protected
The identifier may be inspected only while the checked guard owns it.
Discard
The identifier is cleared during response-policy admission.
Trait Implementations§
Source§impl Clone for RequestIdPolicy
impl Clone for RequestIdPolicy
Source§fn clone(&self) -> RequestIdPolicy
fn clone(&self) -> RequestIdPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequestIdPolicy
Source§impl Debug for RequestIdPolicy
impl Debug for RequestIdPolicy
impl Eq for RequestIdPolicy
Source§impl Hash for RequestIdPolicy
impl Hash for RequestIdPolicy
Source§impl Ord for RequestIdPolicy
impl Ord for RequestIdPolicy
Source§fn cmp(&self, other: &RequestIdPolicy) -> Ordering
fn cmp(&self, other: &RequestIdPolicy) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RequestIdPolicy
impl PartialEq for RequestIdPolicy
Source§impl PartialOrd for RequestIdPolicy
impl PartialOrd for RequestIdPolicy
impl StructuralPartialEq for RequestIdPolicy
Auto Trait Implementations§
impl Freeze for RequestIdPolicy
impl RefUnwindSafe for RequestIdPolicy
impl Send for RequestIdPolicy
impl Sync for RequestIdPolicy
impl Unpin for RequestIdPolicy
impl UnsafeUnpin for RequestIdPolicy
impl UnwindSafe for RequestIdPolicy
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