#[non_exhaustive]pub enum OutcomeKind {
Committed {
bytes_stored: u64,
new_to_repo: u64,
new_to_store: u64,
refs: Vec<OutcomeRef>,
},
Aborted {
reason: AbortReason,
detail: String,
},
Expired,
ReadServed {
object: [u8; 32],
bytes_served: u64,
},
}Expand description
Hooks.v1 terminal variants, field for field.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Committed
A write committed durably.
Aborted
A write or read was aborted.
Expired
An unused ticket expired.
ReadServed
An HTTP read completed, possibly after partial transmission.
Trait Implementations§
Source§impl Clone for OutcomeKind
impl Clone for OutcomeKind
Source§impl Debug for OutcomeKind
impl Debug for OutcomeKind
impl Eq for OutcomeKind
Source§impl PartialEq for OutcomeKind
impl PartialEq for OutcomeKind
impl StructuralPartialEq for OutcomeKind
Auto Trait Implementations§
impl Freeze for OutcomeKind
impl RefUnwindSafe for OutcomeKind
impl Send for OutcomeKind
impl Sync for OutcomeKind
impl Unpin for OutcomeKind
impl UnsafeUnpin for OutcomeKind
impl UnwindSafe for OutcomeKind
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