pub enum LicenceError {
Show 20 variants
Malformed(String),
TooLarge,
BadSignature,
UntrustedKey,
KeyRevoked,
WrongMesh,
NoLocalMesh,
NoBinding,
Unbound,
Orphaned,
Conflict(u64),
DropsArch(String),
ChangesArtifact(String),
NotYetValid,
TtlTooLong,
BindingRefused(&'static str),
CheckFailed(String),
Poisoned(String),
Persist(String),
Full,
}Expand description
Why a licence record or store operation was refused.
Variants§
Malformed(String)
Malformed, non-canonical or invalid content.
TooLarge
Payload or file over the size cap.
BadSignature
The signature does not verify.
UntrustedKey
Signed by a key that is not the pinned operator key (binding, approval) or not the bound grant key (grant).
KeyRevoked
The grant key has been revoked (SignerKey).
WrongMesh
The record names another mesh.
NoLocalMesh
This node has no local mesh id (no mesh nonce configured).
NoBinding
No binding is accepted.
Unbound
The binding is unbound.
Orphaned
The stored binding is for a mesh id this node no longer computes.
Conflict(u64)
A different record at an equal seq (both are refused).
DropsArch(String)
A newer grant leaves out an arch the current one carries.
ChangesArtifact(String)
A newer grant changes the hashes of an arch it already carried.
NotYetValid
Issued ahead of the local clock: retry at the next sync.
TtlTooLong
expires_at - issued_at is over the maximum.
BindingRefused(&'static str)
The checkout part of the policy refuses bindings.
CheckFailed(String)
A steward-profile check failed.
Poisoned(String)
The store file was unreadable at load; writes are refused.
Persist(String)
Persisting to disk failed.
Full
A store capacity limit was reached.
Trait Implementations§
Source§impl Clone for LicenceError
impl Clone for LicenceError
Source§fn clone(&self) -> LicenceError
fn clone(&self) -> LicenceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LicenceError
impl Debug for LicenceError
Source§impl Display for LicenceError
impl Display for LicenceError
impl Eq for LicenceError
Source§impl Error for LicenceError
impl Error for LicenceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<LicenceError> for ExchangeError
impl From<LicenceError> for ExchangeError
Source§fn from(source: LicenceError) -> Self
fn from(source: LicenceError) -> Self
Source§impl PartialEq for LicenceError
impl PartialEq for LicenceError
impl StructuralPartialEq for LicenceError
Auto Trait Implementations§
impl Freeze for LicenceError
impl RefUnwindSafe for LicenceError
impl Send for LicenceError
impl Sync for LicenceError
impl Unpin for LicenceError
impl UnsafeUnpin for LicenceError
impl UnwindSafe for LicenceError
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
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§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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.