logo
pub enum Reason {
Show 21 variants InvalidURI, NoSuchProcedure, ProcedureAlreadyExists, NoSuchRegistration, NoSuchSubscription, InvalidArgument, SystemShutdown, CloseRealm, GoodbyeAndOut, NotAuthorized, AuthorizationFailed, NoSuchRealm, NoSuchRole, Cancelled, OptionNotAllowed, NoEligibleCallee, OptionDisallowedDiscloseMe, NetworkFailure, NormalClose, CustomReason(URI), InternalError,
}
Expand description

Represents error reasons

Variants

InvalidURI

Invalid URI

NoSuchProcedure

No such procedure

ProcedureAlreadyExists

Procedure already exists

NoSuchRegistration

No such registration

NoSuchSubscription

No such subscription

InvalidArgument

Invalid argument

SystemShutdown

System shutdown

CloseRealm

Close realm

GoodbyeAndOut

Goodbye and out

NotAuthorized

Not authorized

AuthorizationFailed

Authorization failed

NoSuchRealm

No such realm

NoSuchRole

No such role

Cancelled

Cancelled

OptionNotAllowed

Option not allowed

NoEligibleCallee

No eligible callee

OptionDisallowedDiscloseMe

DiscloseMe option disallowed

NetworkFailure

Network failure

NormalClose

Normal close

CustomReason(URI)

Custom reason

InternalError

General case internal error

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.