pub enum RequestHandlerError {
Show 30 variants
HelpersNotInitialized,
GovFactInvalidEvent,
GovFactViewpointsNotAllowed,
InvalidTrackerFactViewpoints(String),
TrackerLedgerNotFull(String),
ObsoleteApproval,
ApprovalNotFound(String),
ApprovalChangeFailed,
ApprovalGetFailed,
NotOwner(String),
PendingNewOwner(String),
IsOwner(String),
NotNewOwner(String),
NoNewOwnerPending(String),
InvalidName,
InvalidDescription,
InvalidSchemaId,
GovernanceIdMustBeEmpty,
NamespaceMustBeEmpty,
GovernanceIdRequired,
TransferNewOwnerEmpty,
ConfirmNameOldOwnerEmpty,
ConfirmTrackerNameOldOwner,
SubjectDataNotFound(String),
SubjectNotActive(String),
CreationNotQueued,
RequestIdHash(String),
SubjectIdHash(String),
SignatureVerification(String),
Actor(ActorError),
}Variants§
HelpersNotInitialized
Helpers (hash algorithm, network sender) are not initialized.
GovFactInvalidEvent
GovFactViewpointsNotAllowed
InvalidTrackerFactViewpoints(String)
TrackerLedgerNotFull(String)
ObsoleteApproval
Attempted to mark an approval as obsolete.
ApprovalNotFound(String)
Approval actor not found for a subject.
ApprovalChangeFailed
Failed to change approval state.
ApprovalGetFailed
Failed to get approval state.
NotOwner(String)
Not the owner of the subject.
PendingNewOwner(String)
There is a pending new_owner on the subject.
IsOwner(String)
The signer is the owner but should not be (Confirm/Reject).
NotNewOwner(String)
The signer is not the new owner (Confirm/Reject).
NoNewOwnerPending(String)
No new owner pending (Confirm/Reject).
InvalidName
Subject name validation failed.
InvalidDescription
Subject description validation failed.
InvalidSchemaId
Invalid schema_id in request.
GovernanceIdMustBeEmpty
Governance creation must have empty governance_id.
NamespaceMustBeEmpty
Governance creation must have empty namespace.
GovernanceIdRequired
Non-governance creation must have a governance_id.
TransferNewOwnerEmpty
Transfer event must have a new_owner.
ConfirmNameOldOwnerEmpty
Confirm event name_old_owner is empty.
ConfirmTrackerNameOldOwner
Confirm event for tracker should not have name_old_owner.
SubjectDataNotFound(String)
SubjectData not found.
SubjectNotActive(String)
Subject is not active.
CreationNotQueued
Creation events cannot be queued.
RequestIdHash(String)
Failed to compute request_id hash.
SubjectIdHash(String)
Failed to compute subject_id hash.
SignatureVerification(String)
Failed to verify request signature.
Actor(ActorError)
Wrapped ActorError for actor operations.
Trait Implementations§
Source§impl Clone for RequestHandlerError
impl Clone for RequestHandlerError
Source§fn clone(&self) -> RequestHandlerError
fn clone(&self) -> RequestHandlerError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestHandlerError
impl Debug for RequestHandlerError
Source§impl Display for RequestHandlerError
impl Display for RequestHandlerError
Source§impl Error for RequestHandlerError
impl Error for RequestHandlerError
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<Error> for RequestHandlerError
impl From<Error> for RequestHandlerError
Source§fn from(source: ActorError) -> Self
fn from(source: ActorError) -> Self
Source§impl From<RequestHandlerError> for ActorError
impl From<RequestHandlerError> for ActorError
Source§fn from(err: RequestHandlerError) -> Self
fn from(err: RequestHandlerError) -> Self
Auto Trait Implementations§
impl Freeze for RequestHandlerError
impl RefUnwindSafe for RequestHandlerError
impl Send for RequestHandlerError
impl Sync for RequestHandlerError
impl Unpin for RequestHandlerError
impl UnsafeUnpin for RequestHandlerError
impl UnwindSafe for RequestHandlerError
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<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> 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.