pub enum Outcome {
Ok,
Stale,
NotCovered,
Unlicensed,
PaymentRequired,
RateLimited,
BadRequest,
Error,
}Expand description
The eight outcomes of 5.5.
Variants§
Ok
200: the receipt answers the cell as of the requested asof: its asof is at or
before the requested one, and the mesh asserts it is the cell’s latest version known
as of then.
Stale
200: as Ok, except that the mesh cannot assert the receipt is current; it serves the
last receipt it knows.
NotCovered
404: no receipt for this cell. With a fault (spec-0.4.0, see
check_envelope_extras), the cell is a computed cell whose evaluation faulted.
Unlicensed
403: the requester may not receive this cell.
PaymentRequired
402: available for the quoted price.
RateLimited
429: too many requests.
BadRequest
400: the cell URI does not parse.
Error
5xx: the mesh failed.
Implementations§
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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