#[non_exhaustive]pub enum RequestError {
Configuration(ConfigurationError),
RelayUnavailable {
failures: usize,
},
Unauthenticated {
code: String,
message: String,
},
ClientInactive {
message: String,
},
DeviceRejected {
code: String,
message: String,
},
Other(Error),
Denied {
reason: DenialReason,
message: String,
},
PairingRejected,
Interrupted,
}Expand description
An error during an operation that communicates with the relay or device.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Configuration(ConfigurationError)
Local pairing state couldn’t be read or updated safely.
Consecutive transport or relay failures exhausted the retry policy.
Valid relay traffic resets the consecutive-failure count.
Unauthenticated
An error report wasn’t authenticated by the device.
Callers must not treat this as a trusted device decision or use it to change cryptographic state.
Fields
ClientInactive
The relay reports that the paired client is inactive.
DeviceRejected
The device returned an authenticated protocol error.
Fields
Other(Error)
The operation failed without a more specific public error category.
Denied
The device denied an authorization request.
Fields
reason: DenialReasonThe device’s denial category.
PairingRejected
The device rejected a pending pairing during activation.
Interrupted
The cancellation future resolved before the operation returned its result.
Trait Implementations§
Source§impl Debug for RequestError
impl Debug for RequestError
Source§impl Display for RequestError
impl Display for RequestError
Source§impl Error for RequestError
impl Error for RequestError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()