pub enum Availability {
Available,
Missing,
Expired,
Erased,
Corrupt,
Inaccessible,
Mismatched,
}Expand description
What a retained input is at replay time. Only available contributes
to reproduction; none of the others is a pass.
Variants§
Available
Missing
Digest-only, or the host has no such bytes.
Expired
now_ms >= expires_at_ms; takes precedence over erasure at replay.
Erased
The host reports the bytes erased before expiry.
Corrupt
The bytes do not match the digest, are not valid JSON, or are not in record canonical form.
Inaccessible
The host refused, failed or panicked while resolving.
Mismatched
Intact bytes with a wrong schema, identity, cross-reference or role.
Implementations§
Trait Implementations§
Source§impl Clone for Availability
impl Clone for Availability
impl Copy for Availability
Source§impl Debug for Availability
impl Debug for Availability
Source§impl<'de> Deserialize<'de> for Availability
impl<'de> Deserialize<'de> for Availability
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
Source§impl Display for Availability
impl Display for Availability
impl Eq for Availability
Source§impl Hash for Availability
impl Hash for Availability
Source§impl JsonSchema for Availability
impl JsonSchema for Availability
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for Availability
impl Ord for Availability
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Availability
impl PartialEq for Availability
Source§impl PartialOrd for Availability
impl PartialOrd for Availability
Source§impl Serialize for Availability
impl Serialize for Availability
impl StructuralPartialEq for Availability
Auto Trait Implementations§
impl Freeze for Availability
impl RefUnwindSafe for Availability
impl Send for Availability
impl Sync for Availability
impl Unpin for Availability
impl UnsafeUnpin for Availability
impl UnwindSafe for Availability
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