pub struct Requester {
pub intent: String,
pub name: String,
}Expand description
Requester allows you to identify the entity, that requested the eviction of the target.
Fields§
§intent: Stringintent specifies the action that should be taken for the specified target.
- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.
If all requesters’ intents are withdrawn, the eviction will be canceled.
Cancellation consequences:
- Inactive responders will never run.
- Active responders are expected to cancel the eviction.
- Completed or Interrupted responders should not take any action.
name: Stringname allows you to identify the entity, that requested the eviction of the target.
It must be a valid domain-prefixed key (such as “acme.io/foo”). This field must be unique for each requester. This field is required.
Trait Implementations§
Source§impl DeepMerge for Requester
impl DeepMerge for Requester
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other into self.Source§impl<'de> Deserialize<'de> for Requester
impl<'de> Deserialize<'de> for Requester
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Requester
Auto Trait Implementations§
impl Freeze for Requester
impl RefUnwindSafe for Requester
impl Send for Requester
impl Sync for Requester
impl Unpin for Requester
impl UnsafeUnpin for Requester
impl UnwindSafe for Requester
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