pub enum CallError {
OutsideCall,
ThroughHop,
NoHop,
NotVerified,
AlreadyVerified,
}Expand description
Why there is no caller (or no hop) to answer. Fail closed: each is an
error, never a default; as a PlexusError it is Unauthenticated.
Variants§
OutsideCall
Not inside a call: no dispatch set a context here — a task spawned
without one handed to it (scope), or code run outside any call.
ThroughHop
Inside a call that came through a hop: no gate of this process
admitted a caller; read hop().
NoHop
Inside a call that did not come through a hop: there is none to read.
NotVerified
Inside a call whose method declared no verifier, or one that answered another type than the one asked for.
AlreadyVerified
The call’s verified value is already set: it is set once, by the method’s verifier, and never replaced.
Trait Implementations§
impl Copy for CallError
impl Eq for CallError
Source§impl Error for CallError
impl Error for CallError
1.30.0 · 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<CallError> for PlexusError
impl From<CallError> for PlexusError
impl StructuralPartialEq for CallError
Auto Trait Implementations§
impl Forget for CallError
impl Freeze for CallError
impl RefUnwindSafe for CallError
impl Send for CallError
impl Sync for CallError
impl Unpin for CallError
impl UnsafeUnpin for CallError
impl UnwindSafe for CallError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.