#[non_exhaustive]pub enum Error {
Show 23 variants
MissingConfig {
field: String,
env_var: String,
flag: String,
},
InvalidServiceAccountKeyEncoding,
InvalidServiceAccountKeyLength {
got: usize,
},
InvalidEd25519SeedLength {
got: usize,
},
JwtSignFailed {
source: Error,
},
MutexPoisoned {
name: &'static str,
},
SystemClockBeforeUnixEpoch {
source: SystemTimeError,
},
RequestFailed {
context: String,
source: Error,
},
ResponseReadFailed {
context: String,
source: Error,
},
JsonParseFailed {
context: String,
source: Error,
},
JsonSerializeFailed {
context: String,
source: Error,
},
MissingField {
context: &'static str,
field: &'static str,
},
ApiError {
status: u16,
message: String,
},
RuntimePaused,
RuntimeStarting,
RuntimeInErrorState,
RuntimeUnexpectedHealth {
health: String,
},
RuntimeHealthMissing,
NotFound {
kind: String,
title: String,
},
NotFoundWithOptions {
kind: String,
title: String,
available: Vec<String>,
},
AmbiguousTitle {
kind: String,
title: String,
matches: Vec<(String, String)>,
},
SseParseError {
context: String,
},
OttoStreamEndedUnexpectedly {
context: String,
},
}Expand description
Public error type for the Ascend SDK.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingConfig
InvalidServiceAccountKeyEncoding
InvalidServiceAccountKeyLength
InvalidEd25519SeedLength
JwtSignFailed
MutexPoisoned
SystemClockBeforeUnixEpoch
Fields
§
source: SystemTimeErrorRequestFailed
ResponseReadFailed
JsonParseFailed
JsonSerializeFailed
MissingField
ApiError
RuntimePaused
RuntimeStarting
RuntimeInErrorState
RuntimeUnexpectedHealth
RuntimeHealthMissing
NotFound
NotFoundWithOptions
AmbiguousTitle
SseParseError
OttoStreamEndedUnexpectedly
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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