pub struct ParserFailure { /* private fields */ }Expand description
Closed worker failure for one authenticated request.
Implementations§
Source§impl ParserFailure
impl ParserFailure
Sourcepub const fn new(
identity: ParserResponseIdentity,
code: ParserFailureCode,
) -> Self
pub const fn new( identity: ParserResponseIdentity, code: ParserFailureCode, ) -> Self
Construct a closed worker failure.
Sourcepub fn validate_for(
&self,
request: &ParserRequest,
) -> Result<(), ParserProtocolError>
pub fn validate_for( &self, request: &ParserRequest, ) -> Result<(), ParserProtocolError>
Validate the complete response identity against a request.
§Errors
Returns an error naming the first mismatched identity component.
Sourcepub const fn code(&self) -> ParserFailureCode
pub const fn code(&self) -> ParserFailureCode
Return the stable failure code.
Trait Implementations§
Source§impl Clone for ParserFailure
impl Clone for ParserFailure
Source§fn clone(&self) -> ParserFailure
fn clone(&self) -> ParserFailure
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 ParserFailure
impl Debug for ParserFailure
Source§impl<'de> Deserialize<'de> for ParserFailure
impl<'de> Deserialize<'de> for ParserFailure
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 ParserFailure
impl PartialEq for ParserFailure
Source§impl Serialize for ParserFailure
impl Serialize for ParserFailure
impl Eq for ParserFailure
impl StructuralPartialEq for ParserFailure
Auto Trait Implementations§
impl Freeze for ParserFailure
impl RefUnwindSafe for ParserFailure
impl Send for ParserFailure
impl Sync for ParserFailure
impl Unpin for ParserFailure
impl UnwindSafe for ParserFailure
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.