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
sourceimpl<'de> Deserialize<'de> for Reason
impl<'de> Deserialize<'de> for Reason
sourcefn deserialize<D>(deserializer: D) -> Result<Reason, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Reason, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Reason
impl StructuralEq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more