pub enum TransportCode {
Show 15 variants
NotFound,
AlreadyExists,
InvalidArgument,
FailedPrecondition,
Aborted,
OutOfRange,
ResourceExhausted,
Unimplemented,
DataLoss,
Ambiguous,
Unauthenticated,
PermissionDenied,
Unavailable,
DeadlineExceeded,
Internal,
}Expand description
Stable transport classification used by retry and fencing logic.
Variants§
NotFound
Object was not found.
AlreadyExists
Conditional create found an existing object.
InvalidArgument
The request itself was invalid for the provider API surface.
FailedPrecondition
A precondition failed; on append/open this is a terminal writer fence, including both takeover revocation and finalized-object rejection.
Aborted
GCS redirected or aborted an operation. Rich zonal write redirects are consumed by the gRPC transport before reaching protocol code.
OutOfRange
Requested offset lies outside the provider’s accepted range.
ResourceExhausted
GCS throttled the request with HTTP 429 / RESOURCE_EXHAUSTED because
a per-object mutation-rate or per-project quota was exhausted. The
request remains valid and retry-with-backoff can succeed once quota
state resets; this is not a permanent rejection.
Unimplemented
The provider does not implement the required operation.
DataLoss
Stored bytes or checksums are corrupt.
Ambiguous
The provider response cannot distinguish absence from a selector or routing failure. Recovery must fail closed rather than retrying away or interpreting this observation as a missing object.
Unauthenticated
No valid credential was supplied.
PermissionDenied
The credential lacks bucket permission.
Temporary service or zone outage.
DeadlineExceeded
Operation exceeded its deadline.
Internal
Unclassified internal transport failure.
Implementations§
Source§impl TransportCode
impl TransportCode
Trait Implementations§
Source§impl Clone for TransportCode
impl Clone for TransportCode
Source§fn clone(&self) -> TransportCode
fn clone(&self) -> TransportCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransportCode
Source§impl Debug for TransportCode
impl Debug for TransportCode
Source§impl<'de> Deserialize<'de> for TransportCode
impl<'de> Deserialize<'de> for TransportCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for TransportCode
Source§impl PartialEq for TransportCode
impl PartialEq for TransportCode
Source§fn eq(&self, other: &TransportCode) -> bool
fn eq(&self, other: &TransportCode) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for TransportCode
impl Serialize for TransportCode
impl StructuralPartialEq for TransportCode
Auto Trait Implementations§
impl Freeze for TransportCode
impl RefUnwindSafe for TransportCode
impl Send for TransportCode
impl Sync for TransportCode
impl Unpin for TransportCode
impl UnsafeUnpin for TransportCode
impl UnwindSafe for TransportCode
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> 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