grpcio_sys

Enum grpc_call_error

Source
#[repr(u32)]
pub enum grpc_call_error {
Show 16 variants GRPC_CALL_OK = 0, GRPC_CALL_ERROR = 1, GRPC_CALL_ERROR_NOT_ON_SERVER = 2, GRPC_CALL_ERROR_NOT_ON_CLIENT = 3, GRPC_CALL_ERROR_ALREADY_ACCEPTED = 4, GRPC_CALL_ERROR_ALREADY_INVOKED = 5, GRPC_CALL_ERROR_NOT_INVOKED = 6, GRPC_CALL_ERROR_ALREADY_FINISHED = 7, GRPC_CALL_ERROR_TOO_MANY_OPERATIONS = 8, GRPC_CALL_ERROR_INVALID_FLAGS = 9, GRPC_CALL_ERROR_INVALID_METADATA = 10, GRPC_CALL_ERROR_INVALID_MESSAGE = 11, GRPC_CALL_ERROR_NOT_SERVER_COMPLETION_QUEUE = 12, GRPC_CALL_ERROR_BATCH_TOO_BIG = 13, GRPC_CALL_ERROR_PAYLOAD_TYPE_MISMATCH = 14, GRPC_CALL_ERROR_COMPLETION_QUEUE_SHUTDOWN = 15,
}
Expand description

Result of a grpc call. If the caller satisfies the prerequisites of a particular operation, the grpc_call_error returned will be GRPC_CALL_OK. Receiving any other value listed here is an indication of a bug in the caller.

Variants§

§

GRPC_CALL_OK = 0

everything went ok

§

GRPC_CALL_ERROR = 1

something failed, we don’t know what

§

GRPC_CALL_ERROR_NOT_ON_SERVER = 2

this method is not available on the server

§

GRPC_CALL_ERROR_NOT_ON_CLIENT = 3

this method is not available on the client

§

GRPC_CALL_ERROR_ALREADY_ACCEPTED = 4

this method must be called before server_accept

§

GRPC_CALL_ERROR_ALREADY_INVOKED = 5

this method must be called before invoke

§

GRPC_CALL_ERROR_NOT_INVOKED = 6

this method must be called after invoke

§

GRPC_CALL_ERROR_ALREADY_FINISHED = 7

this call is already finished (writes_done or write_status has already been called)

§

GRPC_CALL_ERROR_TOO_MANY_OPERATIONS = 8

there is already an outstanding read/write operation on the call

§

GRPC_CALL_ERROR_INVALID_FLAGS = 9

the flags value was illegal for this call

§

GRPC_CALL_ERROR_INVALID_METADATA = 10

invalid metadata was passed to this call

§

GRPC_CALL_ERROR_INVALID_MESSAGE = 11

invalid message was passed to this call

§

GRPC_CALL_ERROR_NOT_SERVER_COMPLETION_QUEUE = 12

completion queue for notification has not been registered with the server

§

GRPC_CALL_ERROR_BATCH_TOO_BIG = 13

this batch of operations leads to more operations than allowed

§

GRPC_CALL_ERROR_PAYLOAD_TYPE_MISMATCH = 14

payload type requested is not the type registered

§

GRPC_CALL_ERROR_COMPLETION_QUEUE_SHUTDOWN = 15

completion queue has been shutdown

Trait Implementations§

Source§

impl Clone for grpc_call_error

Source§

fn clone(&self) -> grpc_call_error

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for grpc_call_error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for grpc_call_error

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for grpc_call_error

Source§

fn eq(&self, other: &grpc_call_error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for grpc_call_error

Source§

impl Eq for grpc_call_error

Source§

impl StructuralPartialEq for grpc_call_error

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.