Struct grpcio::RpcStatusCode
source · [−]pub struct RpcStatusCode(_);
Expand description
An gRPC status code structure. This type contains constants for all gRPC status codes.
Implementations
sourceimpl RpcStatusCode
impl RpcStatusCode
pub const OK: RpcStatusCode
pub const CANCELLED: RpcStatusCode
pub const UNKNOWN: RpcStatusCode
pub const INVALID_ARGUMENT: RpcStatusCode
pub const DEADLINE_EXCEEDED: RpcStatusCode
pub const NOT_FOUND: RpcStatusCode
pub const ALREADY_EXISTS: RpcStatusCode
pub const PERMISSION_DENIED: RpcStatusCode
pub const RESOURCE_EXHAUSTED: RpcStatusCode
pub const FAILED_PRECONDITION: RpcStatusCode
pub const ABORTED: RpcStatusCode
pub const OUT_OF_RANGE: RpcStatusCode
pub const UNIMPLEMENTED: RpcStatusCode
pub const INTERNAL: RpcStatusCode
pub const UNAVAILABLE: RpcStatusCode
pub const DATA_LOSS: RpcStatusCode
pub const UNAUTHENTICATED: RpcStatusCode
pub const DO_NOT_USE: RpcStatusCode
Trait Implementations
sourceimpl Clone for RpcStatusCode
impl Clone for RpcStatusCode
sourcefn clone(&self) -> RpcStatusCode
fn clone(&self) -> RpcStatusCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RpcStatusCode
impl Debug for RpcStatusCode
sourceimpl Display for RpcStatusCode
impl Display for RpcStatusCode
sourceimpl From<RpcStatusCode> for i32
impl From<RpcStatusCode> for i32
sourcefn from(code: RpcStatusCode) -> i32
fn from(code: RpcStatusCode) -> i32
Performs the conversion.
sourceimpl From<i32> for RpcStatusCode
impl From<i32> for RpcStatusCode
sourcefn from(code: i32) -> RpcStatusCode
fn from(code: i32) -> RpcStatusCode
Performs the conversion.
sourceimpl PartialEq<RpcStatusCode> for RpcStatusCode
impl PartialEq<RpcStatusCode> for RpcStatusCode
sourcefn eq(&self, other: &RpcStatusCode) -> bool
fn eq(&self, other: &RpcStatusCode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RpcStatusCode) -> bool
fn ne(&self, other: &RpcStatusCode) -> bool
This method tests for !=
.
impl Copy for RpcStatusCode
impl Eq for RpcStatusCode
impl StructuralEq for RpcStatusCode
impl StructuralPartialEq for RpcStatusCode
Auto Trait Implementations
impl RefUnwindSafe for RpcStatusCode
impl Send for RpcStatusCode
impl Sync for RpcStatusCode
impl Unpin for RpcStatusCode
impl UnwindSafe for RpcStatusCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more