Struct AbandonRequest
pub struct AbandonRequest {
pub reservation: TrialReservation,
pub reason: String,
pub operation: OperationId,
}Expand description
Input to the conditional reservation-abandon operation.
Fields§
§reservation: TrialReservationThe unclaimed reservation to abandon.
reason: StringThe durable failure reason.
operation: OperationIdThe lifecycle operation this call belongs to, for cross-process
correlation. OperationId::NONE when the caller has none — an honest
gap, never a fabricated correlation.
Implementations§
§impl AbandonRequest
impl AbandonRequest
pub fn new(reservation: TrialReservation, reason: impl Into<String>) -> Self
pub fn new(reservation: TrialReservation, reason: impl Into<String>) -> Self
Creates an abandon request.
pub const fn with_operation(self, operation: OperationId) -> Self
pub const fn with_operation(self, operation: OperationId) -> Self
Tags the request with the lifecycle operation it belongs to.
Defaulted rather than required: a backend must work for a caller with no correlation to offer, and a required id would only ever be satisfied with a fresh one that correlates nothing.
Trait Implementations§
§impl Clone for AbandonRequest
impl Clone for AbandonRequest
§fn clone(&self) -> AbandonRequest
fn clone(&self) -> AbandonRequest
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 more§impl Debug for AbandonRequest
impl Debug for AbandonRequest
impl Eq for AbandonRequest
§impl PartialEq for AbandonRequest
impl PartialEq for AbandonRequest
impl StructuralPartialEq for AbandonRequest
Auto Trait Implementations§
impl Freeze for AbandonRequest
impl RefUnwindSafe for AbandonRequest
impl Send for AbandonRequest
impl Sync for AbandonRequest
impl Unpin for AbandonRequest
impl UnsafeUnpin for AbandonRequest
impl UnwindSafe for AbandonRequest
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