#[non_exhaustive]pub enum AnyEnvelope {
Envelope(Envelope, EnvelopeExtras),
Pending(Pending),
}Expand description
The answer to a request: a Pending envelope, or one of the eight outcomes an
Envelope holds, with its EnvelopeExtras (see check_envelope_any).
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.
Envelope(Envelope, EnvelopeExtras)
ok, stale, not_covered, unlicensed, payment_required, rate_limited,
bad_request or error.
Pending(Pending)
pending (202): the mesh is still computing; the answer will be at poll.
Implementations§
Source§impl AnyEnvelope
impl AnyEnvelope
Sourcepub fn outcome_str(&self) -> &'static str
pub fn outcome_str(&self) -> &'static str
The outcome as written in JSON, "pending" included.
Trait Implementations§
Source§impl Clone for AnyEnvelope
impl Clone for AnyEnvelope
Source§impl Debug for AnyEnvelope
impl Debug for AnyEnvelope
impl Eq for AnyEnvelope
Source§impl PartialEq for AnyEnvelope
impl PartialEq for AnyEnvelope
impl StructuralPartialEq for AnyEnvelope
Auto Trait Implementations§
impl Freeze for AnyEnvelope
impl RefUnwindSafe for AnyEnvelope
impl Send for AnyEnvelope
impl Sync for AnyEnvelope
impl Unpin for AnyEnvelope
impl UnsafeUnpin for AnyEnvelope
impl UnwindSafe for AnyEnvelope
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