pub enum RunnerErrorKind {
Show 19 variants
Unknown(u16),
UnknownReqwest,
Building,
Connect,
Timeout,
Decode,
Server,
Rejection,
AtCapacity,
Runner,
UnknownMeasurement,
OldVersion,
TemporarilyUnavailable,
ServiceUnavailable,
Boot,
EvictionFailure,
UnknownUser,
LeaseExpired,
WrongLease,
}Expand description
All variants of errors that the runner can return.
Variants§
Unknown(u16)
Unknown error
UnknownReqwest
Unknown Reqwest client error
Building
Error building the HTTP request
Connect
Error connecting to a remote HTTP service
Timeout
Request timed out
Decode
Error decoding/deserializing the HTTP response body
Server
General server error
Rejection
Client provided a bad request that the server rejected
AtCapacity
Server is at capacity
Runner
General Runner error
UnknownMeasurement
Unknown or unserviceable measurement
OldVersion
Caller requested a version which is too old
Requested node temporarily unavailable, most likely due to a common race condition; retry the request (temporary error)
Runner service is unavailable (semi-permanent error)
Boot
Requested node failed to boot
EvictionFailure
Failed to evict a usernode
UnknownUser
The requested user is not known to the runner
LeaseExpired
Tried to renew a lease that has already expired
WrongLease
Tried to renew a lease belonging to a different user
Trait Implementations§
Source§impl ApiErrorKind for RunnerErrorKind
impl ApiErrorKind for RunnerErrorKind
Source§const KINDS: &'static [RunnerErrorKind]
const KINDS: &'static [RunnerErrorKind]
Unknown(_).Source§fn is_unknown(&self) -> bool
fn is_unknown(&self) -> bool
true if the error kind is unrecognized (at least by this
version of the software).Source§impl Clone for RunnerErrorKind
impl Clone for RunnerErrorKind
Source§fn clone(&self) -> RunnerErrorKind
fn clone(&self) -> RunnerErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunnerErrorKind
impl Debug for RunnerErrorKind
Source§impl Default for RunnerErrorKind
impl Default for RunnerErrorKind
Source§fn default() -> RunnerErrorKind
fn default() -> RunnerErrorKind
Source§impl Display for RunnerErrorKind
impl Display for RunnerErrorKind
Source§impl From<CommonErrorKind> for RunnerErrorKind
impl From<CommonErrorKind> for RunnerErrorKind
Source§fn from(common: CommonErrorKind) -> RunnerErrorKind
fn from(common: CommonErrorKind) -> RunnerErrorKind
Source§impl From<u16> for RunnerErrorKind
impl From<u16> for RunnerErrorKind
Source§fn from(code: u16) -> RunnerErrorKind
fn from(code: u16) -> RunnerErrorKind
Source§impl Hash for RunnerErrorKind
impl Hash for RunnerErrorKind
Source§impl PartialEq for RunnerErrorKind
impl PartialEq for RunnerErrorKind
Source§impl ToHttpStatus for RunnerErrorKind
impl ToHttpStatus for RunnerErrorKind
fn to_http_status(&self) -> StatusCode
impl Copy for RunnerErrorKind
impl Eq for RunnerErrorKind
impl StructuralPartialEq for RunnerErrorKind
Auto Trait Implementations§
impl Freeze for RunnerErrorKind
impl RefUnwindSafe for RunnerErrorKind
impl Send for RunnerErrorKind
impl Sync for RunnerErrorKind
impl Unpin for RunnerErrorKind
impl UnsafeUnpin for RunnerErrorKind
impl UnwindSafe for RunnerErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.