pub enum ResponseError<E> {
UsedLength {
used: u32,
},
ResponseLimit,
HeaderAccess(E),
PayloadAccess(E),
RequestId {
expected: u64,
actual: u64,
},
Flags(u16),
PayloadLength {
expected: u64,
actual: u32,
},
PayloadEncoding,
ObjectId,
DeviceInfo(DeviceInfoError),
EventState(u16),
EventStatus {
state: u16,
error: StatusCode,
},
}Expand description
Malformed or inaccessible device response.
Variants§
UsedLength
Used length cannot contain the required response header or exact payload.
ResponseLimit
The response exceeds the negotiated frame limit.
HeaderAccess(E)
The response header cannot be read.
PayloadAccess(E)
The response payload cannot be read.
RequestId
Response request ID does not match the chain’s request.
Flags(u16)
Protocol 1.0 response flags are nonzero.
PayloadLength
Payload shape does not match the operation and status.
PayloadEncoding
A fixed payload cannot be decoded from its exact bytes.
ObjectId
A successful object-creation response returned object ID zero.
DeviceInfo(DeviceInfoError)
Device discovery returned invalid limits or reserved values.
EventState(u16)
Event state uses an unknown numeric value.
EventStatus
Event state and error status contradict each other.
Trait Implementations§
Source§impl<E: Debug> Debug for ResponseError<E>
impl<E: Debug> Debug for ResponseError<E>
impl<E: Eq> Eq for ResponseError<E>
Source§impl<E: PartialEq> PartialEq for ResponseError<E>
impl<E: PartialEq> PartialEq for ResponseError<E>
Source§fn eq(&self, other: &ResponseError<E>) -> bool
fn eq(&self, other: &ResponseError<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: PartialEq> StructuralPartialEq for ResponseError<E>
Auto Trait Implementations§
impl<E> Freeze for ResponseError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ResponseError<E>where
E: RefUnwindSafe,
impl<E> Send for ResponseError<E>where
E: Send,
impl<E> Sync for ResponseError<E>where
E: Sync,
impl<E> Unpin for ResponseError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ResponseError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ResponseError<E>where
E: UnwindSafe,
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