#[repr(i32)]pub enum ErrorCode {
InternalServerErrorUnspecified = 0,
ParseFailed = 1,
ResolverNotFound = 2,
InvalidQuery = 3,
ValidationFailed = 4,
ResolverFailed = 5,
ResolverTimedOut = 6,
UpstreamFailed = 7,
Unauthenticated = 8,
Unauthorized = 9,
Cancelled = 10,
DeadlineExceeded = 11,
}Variants§
InternalServerErrorUnspecified = 0
An unspecified error occurred.
ParseFailed = 1
The query contained features that do not exist
ResolverNotFound = 2
A resolver was required as part of running the dependency graph that could not be found.
InvalidQuery = 3
The query is invalid. All supplied features need to be rooted in the same top-level entity.
ValidationFailed = 4
A feature value did not match the expected schema
(e.g. incompatible type "int"; expected "str")
ResolverFailed = 5
The resolver for a feature errored.
ResolverTimedOut = 6
The resolver for a feature timed out.
UpstreamFailed = 7
A crash in a resolver that was to produce an input for the resolver crashed, and so the resolver could not run crashed, and so the resolver could not run.
Unauthenticated = 8
The request was submitted with an invalid authentication header.
The supplied credentials do not provide the right authorization to execute the request.
Cancelled = 10
The operation was cancelled, typically by the caller.
DeadlineExceeded = 11
The deadline expired before the operation could complete.
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for ErrorCode
impl Ord for ErrorCode
Source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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> Comparable<K> for Q
impl<Q, K> Comparable<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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request