pub enum ParserFailureCode {
InvalidRequest,
InvalidSource,
LanguageMismatch,
ArtifactMismatch,
ParseRejected,
LimitExceeded,
Cancelled,
ProtocolViolation,
InternalFailure,
}Expand description
Stable closed worker failure codes.
Variants§
InvalidRequest
Request control failed validation.
InvalidSource
Raw source failed authentication or validation.
LanguageMismatch
The resident worker does not own the requested language.
ArtifactMismatch
The loaded parser artifact does not match the expected identity.
ParseRejected
The parser rejected the source without producing valid evidence.
LimitExceeded
A bounded resource limit was reached.
Cancelled
The supervisor cancelled the request.
ProtocolViolation
The worker encountered a protocol invariant violation.
InternalFailure
The worker failed without a more specific safe classification.
Trait Implementations§
Source§impl Clone for ParserFailureCode
impl Clone for ParserFailureCode
Source§fn clone(&self) -> ParserFailureCode
fn clone(&self) -> ParserFailureCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserFailureCode
impl Debug for ParserFailureCode
Source§impl<'de> Deserialize<'de> for ParserFailureCode
impl<'de> Deserialize<'de> for ParserFailureCode
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 PartialEq for ParserFailureCode
impl PartialEq for ParserFailureCode
Source§impl Serialize for ParserFailureCode
impl Serialize for ParserFailureCode
impl Copy for ParserFailureCode
impl Eq for ParserFailureCode
impl StructuralPartialEq for ParserFailureCode
Auto Trait Implementations§
impl Freeze for ParserFailureCode
impl RefUnwindSafe for ParserFailureCode
impl Send for ParserFailureCode
impl Sync for ParserFailureCode
impl Unpin for ParserFailureCode
impl UnwindSafe for ParserFailureCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.