#[non_exhaustive]pub enum ErrorTag {
Show 21 variants
InUse,
InvalidValue,
TooBig,
MissingAttribute,
BadAttribute,
UnknownAttribute,
MissingElement,
BadElement,
UnknownElement,
UnknownNamespace,
AccessDenied,
LockDenied,
ResourceDenied,
RollbackFailed,
DataExists,
DataMissing,
OperationNotSupported,
OperationFailed,
PartialOperation,
MalformedMessage,
Other(String),
}Expand description
<error-tag> (RFC6241 appendix A).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InUse
Resource is in use.
InvalidValue
Value is out of range or otherwise invalid.
TooBig
Request or reply is too large.
MissingAttribute
A required attribute is missing.
BadAttribute
An attribute has an unexpected value.
UnknownAttribute
An attribute is not recognised.
MissingElement
A required element is missing.
BadElement
An element has an unexpected value.
UnknownElement
An element is not recognised.
UnknownNamespace
A namespace is not recognised.
AccessDenied
Access to the resource was denied.
LockDenied
The lock is already held.
ResourceDenied
The device is out of resources.
RollbackFailed
Rollback was requested but failed.
DataExists
The data already exists.
DataMissing
The data does not exist.
OperationNotSupported
The operation is not supported.
OperationFailed
The operation failed for an unspecified reason.
PartialOperation
The operation was only partly applied.
MalformedMessage
The message is not well-formed.
Other(String)
A value this crate does not know.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorTag
impl<'de> Deserialize<'de> for ErrorTag
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorTag
impl StructuralPartialEq for ErrorTag
Auto Trait Implementations§
impl Freeze for ErrorTag
impl RefUnwindSafe for ErrorTag
impl Send for ErrorTag
impl Sync for ErrorTag
impl Unpin for ErrorTag
impl UnsafeUnpin for ErrorTag
impl UnwindSafe for ErrorTag
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