#[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
impl Clone for grpc_call_error
Source§fn clone(&self) -> grpc_call_error
fn clone(&self) -> grpc_call_error
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more