pub enum ResultCode {
Show 34 variants
CommandCompletedSuccessfully = 1_000,
CommandCompletedSuccessfullyActionPending = 1_001,
CommandCompletedSuccessfullyNoMessages = 1_300,
CommandCompletedSuccessfullyAckToDequeue = 1_301,
CommandCompletedSuccessfullyEndingSession = 1_500,
UnknownCommand = 2_000,
CommandSyntaxError = 2_001,
CommandUseError = 2_002,
RequiredParameterMissing = 2_003,
ParameterValueRangeError = 2_004,
ParameterValueSyntaxError = 2_005,
UnimplementedProtocolVersion = 2_100,
UnimplementedCommand = 2_101,
UnimplementedOption = 2_102,
UnimplementedExtension = 2_103,
BillingFailure = 2_104,
ObjectIsNotEligibleForRenewal = 2_105,
ObjectIsNotEligibleForTransfer = 2_106,
AuthenticationError = 2_200,
AuthorizationError = 2_201,
InvalidAuthorizationInformation = 2_202,
ObjectPendingTransfer = 2_300,
ObjectNotPendingTransfer = 2_301,
ObjectExists = 2_302,
ObjectDoesNotExist = 2_303,
ObjectStatusProhibitsOperation = 2_304,
ObjectAssociationProhibitsOperation = 2_305,
ParameterValuePolicyError = 2_306,
UnimplementedObjectService = 2_307,
DataManagementPolicyViolation = 2_308,
CommandFailed = 2_400,
CommandFailedServerClosingConnection = 2_500,
AuthenticationErrorServerClosingConnection = 2_501,
SessionLimitExceededServerClosingConnection = 2_502,
}Expand description
Response codes as enumerated in section 3 of RFC 5730
Variants§
CommandCompletedSuccessfully = 1_000
CommandCompletedSuccessfullyActionPending = 1_001
CommandCompletedSuccessfullyNoMessages = 1_300
CommandCompletedSuccessfullyAckToDequeue = 1_301
CommandCompletedSuccessfullyEndingSession = 1_500
UnknownCommand = 2_000
CommandSyntaxError = 2_001
CommandUseError = 2_002
RequiredParameterMissing = 2_003
ParameterValueRangeError = 2_004
ParameterValueSyntaxError = 2_005
UnimplementedProtocolVersion = 2_100
UnimplementedCommand = 2_101
UnimplementedOption = 2_102
UnimplementedExtension = 2_103
BillingFailure = 2_104
ObjectIsNotEligibleForRenewal = 2_105
ObjectIsNotEligibleForTransfer = 2_106
AuthenticationError = 2_200
AuthorizationError = 2_201
InvalidAuthorizationInformation = 2_202
ObjectPendingTransfer = 2_300
ObjectNotPendingTransfer = 2_301
ObjectExists = 2_302
ObjectDoesNotExist = 2_303
ObjectStatusProhibitsOperation = 2_304
ObjectAssociationProhibitsOperation = 2_305
ParameterValuePolicyError = 2_306
UnimplementedObjectService = 2_307
DataManagementPolicyViolation = 2_308
CommandFailed = 2_400
CommandFailedServerClosingConnection = 2_500
AuthenticationErrorServerClosingConnection = 2_501
SessionLimitExceededServerClosingConnection = 2_502
Implementations§
Source§impl ResultCode
impl ResultCode
pub fn from_u16(code: u16) -> Option<Self>
pub fn is_success(&self) -> bool
Sourcepub fn is_persistent(&self) -> bool
pub fn is_persistent(&self) -> bool
Returns true if this error is likely to persist across similar requests inside the same connection or session.
The same command with different arguments might succeed in some cases.
Trait Implementations§
Source§impl Clone for ResultCode
impl Clone for ResultCode
Source§fn clone(&self) -> ResultCode
fn clone(&self) -> ResultCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResultCode
impl Debug for ResultCode
Source§impl<'xml> FromXml<'xml> for ResultCode
impl<'xml> FromXml<'xml> for ResultCode
const KIND: Kind = Kind::Scalar
type Accumulator = Option<ResultCode>
fn matches(id: Id<'_>, field: Option<Id<'_>>) -> bool
fn deserialize<'cx>( into: &mut Self::Accumulator, field: &'static str, deserializer: &mut Deserializer<'cx, 'xml>, ) -> Result<(), Error>
Source§impl PartialEq for ResultCode
impl PartialEq for ResultCode
impl Copy for ResultCode
impl Eq for ResultCode
impl StructuralPartialEq for ResultCode
Auto Trait Implementations§
impl Freeze for ResultCode
impl RefUnwindSafe for ResultCode
impl Send for ResultCode
impl Sync for ResultCode
impl Unpin for ResultCode
impl UnwindSafe for ResultCode
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
Mutably borrows from an owned value. Read more