pub enum ReservationV1 {
Pending {
repository: String,
created_at_ms: u64,
reconcile_at_ms: u64,
op: PendingOp,
},
Ticketed {
ticket_id: Hash,
},
Committed {
repository: String,
occurred_at_ms: u64,
bytes_stored: u64,
new_to_repo: u64,
new_to_store: u64,
refs: Vec<OutcomeRef>,
},
Aborted {
repository: String,
occurred_at_ms: u64,
reason: AbortReason,
detail: String,
},
Expired {
repository: String,
occurred_at_ms: u64,
},
ReadServed {
repository: String,
occurred_at_ms: u64,
object: Hash,
bytes_served: u64,
},
}Expand description
The one durable reservation arbiter, replaced under an Equals guard.
Unknown state tags fail decoding, so older readers fail closed.
Variants§
Pending
Admission’s durable pre-apply arbiter.
Fields
Ticketed
Successful BeginUpload, awaiting ticket consumption or expiry.
Committed
A committed apply, including its byte accounting and ref changes.
Fields
§
refs: Vec<OutcomeRef>Ref changes included in this apply.
Aborted
Failed apply or abandoned pending reservation.
Fields
§
reason: AbortReasonStable hooks reason.
Expired
An unconsumed ticket expired.
Fields
ReadServed
An admitted HTTP read, including partial delivery.
Trait Implementations§
Source§impl Clone for ReservationV1
impl Clone for ReservationV1
Source§impl Debug for ReservationV1
impl Debug for ReservationV1
Source§impl<'de> Deserialize<'de> for ReservationV1
impl<'de> Deserialize<'de> for ReservationV1
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 Eq for ReservationV1
Source§impl PartialEq for ReservationV1
impl PartialEq for ReservationV1
Source§impl Serialize for ReservationV1
impl Serialize for ReservationV1
impl StructuralPartialEq for ReservationV1
Auto Trait Implementations§
impl Freeze for ReservationV1
impl RefUnwindSafe for ReservationV1
impl Send for ReservationV1
impl Sync for ReservationV1
impl Unpin for ReservationV1
impl UnsafeUnpin for ReservationV1
impl UnwindSafe for ReservationV1
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