pub enum KnockFlowError {
Show 14 variants
Artifact(CodecError),
Invalid(KnockError),
Standing(StandingError),
WrongAuthority {
expected: String,
got: String,
},
Expired {
exp: i64,
},
NotAnApprover(PrincipalId),
PendingFull,
UnknownKnock,
UnknownOffer,
OfferExhausted,
OfferExpired,
OfferMismatch(&'static str),
Refused(AdmissionRefusal),
Store(StoreError),
}Expand description
Why a knock operation failed.
Variants§
Artifact(CodecError)
Invalid(KnockError)
Standing(StandingError)
WrongAuthority
Expired
NotAnApprover(PrincipalId)
PendingFull
UnknownKnock
UnknownOffer
OfferExhausted
OfferExpired
OfferMismatch(&'static str)
Refused(AdmissionRefusal)
Store(StoreError)
Trait Implementations§
Source§impl Debug for KnockFlowError
impl Debug for KnockFlowError
Source§impl Display for KnockFlowError
impl Display for KnockFlowError
Source§impl Error for KnockFlowError
impl Error for KnockFlowError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AdmissionRefusal> for KnockFlowError
impl From<AdmissionRefusal> for KnockFlowError
Source§fn from(source: AdmissionRefusal) -> Self
fn from(source: AdmissionRefusal) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for KnockFlowError
impl From<CodecError> for KnockFlowError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<KnockError> for KnockFlowError
impl From<KnockError> for KnockFlowError
Source§fn from(source: KnockError) -> Self
fn from(source: KnockError) -> Self
Converts to this type from the input type.
Source§impl From<StandingError> for KnockFlowError
impl From<StandingError> for KnockFlowError
Source§fn from(source: StandingError) -> Self
fn from(source: StandingError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for KnockFlowError
impl From<StoreError> for KnockFlowError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for KnockFlowError
impl !UnwindSafe for KnockFlowError
impl Freeze for KnockFlowError
impl Send for KnockFlowError
impl Sync for KnockFlowError
impl Unpin for KnockFlowError
impl UnsafeUnpin for KnockFlowError
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