pub enum HardwareError {
AuthenticationFailed(String),
DeviceNotFound(String),
DeviceOffline(String),
CircuitTooLarge {
qubits: u32,
max: u32,
},
JobFailed(String),
NetworkError(String),
RateLimited {
retry_after_ms: u64,
},
}Expand description
Errors that can occur when interacting with hardware providers.
Variants§
AuthenticationFailed(String)
Provider rejected the supplied credentials or no credentials were found.
DeviceNotFound(String)
The requested device name does not exist in this provider.
DeviceOffline(String)
The device exists but is not currently accepting jobs.
CircuitTooLarge
The submitted circuit requires more qubits than the device supports.
JobFailed(String)
A previously submitted job has failed.
NetworkError(String)
A network-level communication error occurred.
RateLimited
The provider throttled the request; retry after the given duration.
Trait Implementations§
Source§impl Debug for HardwareError
impl Debug for HardwareError
Source§impl Display for HardwareError
impl Display for HardwareError
Source§impl Error for HardwareError
impl Error for HardwareError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for HardwareError
impl RefUnwindSafe for HardwareError
impl Send for HardwareError
impl Sync for HardwareError
impl Unpin for HardwareError
impl UnsafeUnpin for HardwareError
impl UnwindSafe for HardwareError
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