pub enum ErrorKind {
LeaseAlreadyHeld,
AIOProtocolError(AIOProtocolError),
ServiceError(ServiceError),
MissingFencingToken,
SerializationError(String),
InvalidArgument(String),
UnexpectedPayload(String),
DuplicateObserve,
}
Expand description
Represents the kinds of errors that occur in the Azure IoT Operations Lease and Lock implementation.
Variants§
LeaseAlreadyHeld
The lease is already in use by another holder.
AIOProtocolError(AIOProtocolError)
An error occurred in the AIO Protocol. See AIOProtocolError
for more information.
ServiceError(ServiceError)
An error occurred from the State Store Service. See ServiceError
for more information.
MissingFencingToken
Fencing token not received from service.
SerializationError(String)
An error occurred during serialization of a request.
InvalidArgument(String)
An argument provided for a request was invalid.
UnexpectedPayload(String)
The payload of the response does not match the expected type for the request.
DuplicateObserve
A lease may only have one LeaseObservation
at a time.
Trait Implementations§
Source§impl Error for ErrorKind
impl Error for ErrorKind
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AIOProtocolError> for ErrorKind
impl From<AIOProtocolError> for ErrorKind
Source§fn from(source: AIOProtocolError) -> Self
fn from(source: AIOProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<ServiceError> for ErrorKind
impl From<ServiceError> for ErrorKind
Source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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