pub enum ErrorDetail {
Show 21 variants
Aborted {
reason: String,
},
DeadlineExceeded {
submitted: bool,
},
InvalidRequest {
field: Option<String>,
reason: String,
},
UnsupportedVersion {
observed: u32,
maximum_supported: u32,
},
Unauthenticated,
PermissionDenied {
action: Option<String>,
workload_class: Option<WorkloadClass>,
},
NotFound {
resource: Option<String>,
},
Conflict {
expected_revision: Option<U64>,
observed_revision: Option<U64>,
},
StaleCursor {
restart_count: u32,
},
RestartBudgetExhausted {
maximum_restarts: u32,
},
LimitExceeded {
limit_id: String,
maximum: U64,
},
CapabilityUnavailable {
capability: Option<String>,
},
NotSubmitted {
retry_after_millis: Option<U64>,
},
SubmittedIndeterminate {
locator: Option<Locator>,
},
ExpiredUnknown {
locator: Option<Locator>,
},
SecretNotEscrowed,
RetentionGap {
retired_through: U64,
},
ArtifactRangeInvalid {
maximum_bytes: U64,
},
ChecksumMismatch {
expected: Digest,
observed: Digest,
},
TemporarilyUnavailable {
retry_after_millis: Option<U64>,
},
Internal,
}Variants§
Aborted
DeadlineExceeded
InvalidRequest
UnsupportedVersion
Unauthenticated
PermissionDenied
NotFound
Conflict
StaleCursor
RestartBudgetExhausted
LimitExceeded
NotSubmitted
SubmittedIndeterminate
ExpiredUnknown
SecretNotEscrowed
RetentionGap
ArtifactRangeInvalid
ChecksumMismatch
Internal
Trait Implementations§
Source§impl Clone for ErrorDetail
impl Clone for ErrorDetail
Source§fn clone(&self) -> ErrorDetail
fn clone(&self) -> ErrorDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorDetail
impl Debug for ErrorDetail
Source§impl<'de> Deserialize<'de> for ErrorDetail
impl<'de> Deserialize<'de> for ErrorDetail
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorDetail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorDetail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ErrorDetail
impl PartialEq for ErrorDetail
Source§impl Serialize for ErrorDetail
impl Serialize for ErrorDetail
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ErrorDetail
Auto Trait Implementations§
impl Freeze for ErrorDetail
impl RefUnwindSafe for ErrorDetail
impl Send for ErrorDetail
impl Sync for ErrorDetail
impl Unpin for ErrorDetail
impl UnsafeUnpin for ErrorDetail
impl UnwindSafe for ErrorDetail
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Wrap the input message
T in a tonic::Request