pub enum PortableError {
NotPortable,
NoProof,
ForeignMethod {
method: String,
did: String,
},
Unresolved {
method: String,
why: String,
},
Invalid(String),
NoGateways,
InvalidGateway(String),
}Expand description
Why a portable document is not authentic.
Variants§
NotPortable
Its id is not an ap URI, or it has none.
NoProof
It has no usable integrity proof.
ForeignMethod
The proof’s verification method is not under the DID it has to be.
Unresolved
The verification method did not resolve to a key.
Invalid(String)
The proof does not verify.
NoGateways
It is an actor and lists no gateway.
InvalidGateway(String)
It is an actor and lists something that is not a gateway: every
gateway has to be an http or https origin.
Trait Implementations§
Source§impl Debug for PortableError
impl Debug for PortableError
Source§impl Display for PortableError
impl Display for PortableError
Source§impl Error for PortableError
impl Error for PortableError
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()
Auto Trait Implementations§
impl Freeze for PortableError
impl RefUnwindSafe for PortableError
impl Send for PortableError
impl Sync for PortableError
impl Unpin for PortableError
impl UnsafeUnpin for PortableError
impl UnwindSafe for PortableError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.