Enum dock_runtime::trust_registry::Error
source · pub enum Error<T> {
Show 28 variants
TooManyRegistries,
NotTheConvener,
NoRegistry,
NoSuchIssuer,
AlreadySuspended,
NotSuspended,
TrustRegistryNameSizeExceeded,
GovFrameworkSizeExceeded,
DelegatedIssuersSizeExceeded,
IssuersSizeExceeded,
VerifiersSizeExceeded,
VerificationPricesSizeExceeded,
PriceCurrencySymbolSizeExceeded,
SchemasPerRegistrySizeExceeded,
IssuerCantDelegateToHimself,
InvalidIssuerTarget,
Underflow,
EntityDoesntExist,
EntityAlreadyExists,
SenderCantApplyThisUpdate,
TooManySchemasPerDelegatedIssuer,
TooManyEntities,
UpdateValidationFailed,
DuplicateKey,
NotAParticipant,
ParticipantOrgNameSizeExceededLimit,
ParticipantLogoSizeExceededLimit,
ParticipantDescriptionSizeExceededLimit,
// some variants omitted
}
Expand description
Error for the TrustRegistry module.
Variants§
TooManyRegistries
Too many registries per a Convener
.
NotTheConvener
Not the TrustRegistry
’s Convener
.
NoRegistry
TrustRegistry
with supplied identifier doesn’t exist
NoSuchIssuer
Supplied Issuer
doesn’t exist.
AlreadySuspended
At least one of the supplied Issuers
was suspended already.
NotSuspended
At least one of the supplied Issuers
wasn’t suspended.
TrustRegistryNameSizeExceeded
Trust registry name length exceeds its bound.
GovFrameworkSizeExceeded
Trust registry gov framework size exceeds its bound.
DelegatedIssuersSizeExceeded
Supplied delegated Issuer
s amount exceeds max allowed bound.
IssuersSizeExceeded
Supplied Issuer
s amount exceeds max allowed bound.
VerifiersSizeExceeded
Supplied Verifier
s amount exceeds max allowed bound.
VerificationPricesSizeExceeded
Supplied VerificatinPrice
s amount exceeds max allowed bound.
PriceCurrencySymbolSizeExceeded
One of the verification prices symbols exceeds its max length bound.
SchemasPerRegistrySizeExceeded
Too many schemas per a single Trust Registry.
IssuerCantDelegateToHimself
Issuer
attempts to set himself as a delegated Issuer
.
InvalidIssuerTarget
Issuer cant’ modify other Issuer
.
Underflow
Attempt to decrease counter below zero.
EntityDoesntExist
Attempt to remove/update non-existing entity failed.
EntityAlreadyExists
Attempt to add an existing entity failed.
SenderCantApplyThisUpdate
This update can’t be executed by the provided sender.
TooManySchemasPerDelegatedIssuer
Delegated Issuer
’s schemas amount exceeded.
TooManyEntities
Can’t add more entities.
UpdateValidationFailed
Failed to validate provided update.
DuplicateKey
Some of the keys were found twice in the update.
NotAParticipant
One of the Issuer
s or Verifier
s is not a registry participant.
ParticipantOrgNameSizeExceededLimit
TrustRegistry
participant’s org name exceeded its limit.
ParticipantLogoSizeExceededLimit
TrustRegistry
participant’s logo exceeded its limit.
ParticipantDescriptionSizeExceededLimit
TrustRegistry
participant’s description exceeded its limit.
Trait Implementations§
source§impl<T> Decode for Error<T>
impl<T> Decode for Error<T>
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Error<T>, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Error<T>, Error>where __CodecInputEdqy: Input,
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
source§impl<T> Encode for Error<T>
impl<T> Encode for Error<T>
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn encode_to<__CodecOutputEdqy>(&self, __codec_dest_edqy: &mut __CodecOutputEdqy)where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(&self, __codec_dest_edqy: &mut __CodecOutputEdqy)where __CodecOutputEdqy: Output + ?Sized,
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl<T> From<DuplicateKey> for Error<T>
impl<T> From<DuplicateKey> for Error<T>
source§fn from(_: DuplicateKey) -> Error<T>
fn from(_: DuplicateKey) -> Error<T>
source§impl<T> From<UpdateError> for Error<T>
impl<T> From<UpdateError> for Error<T>
source§fn from(update_error: UpdateError) -> Error<T>
fn from(update_error: UpdateError) -> Error<T>
source§impl<T> IntoModuleError<T> for Error<T>
impl<T> IntoModuleError<T> for Error<T>
fn into_module_error(self) -> Error<T>
source§impl<T> PalletError for Error<T>
impl<T> PalletError for Error<T>
source§const MAX_ENCODED_SIZE: usize = 1usize
const MAX_ENCODED_SIZE: usize = 1usize
source§impl<T> TypeInfo for Error<T>where
PhantomData<T>: TypeInfo + 'static,
T: 'static,
impl<T> TypeInfo for Error<T>where PhantomData<T>: TypeInfo + 'static, T: 'static,
impl<T> EncodeLike<Error<T>> for Error<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Error<T>where T: RefUnwindSafe,
impl<T> Send for Error<T>where T: Send,
impl<T> Sync for Error<T>where T: Sync,
impl<T> Unpin for Error<T>where T: Unpin,
impl<T> UnwindSafe for Error<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> CanUpdate<()> for T
impl<T> CanUpdate<()> for T
source§fn can_remove(&self, _entity: &()) -> bool
fn can_remove(&self, _entity: &()) -> bool
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> Hashable for Twhere
T: Codec,
impl<T> Hashable for Twhere T: Codec,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere T: Codec,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.