[][src]Enum grpcio_sys::GrpcCallStatus

#[repr(C)]
pub enum GrpcCallStatus { Ok, Error, ErrorNotOnServer, ErrorNotOnClient, ErrorAlreadyAccepted, ErrorAlreadyInvoked, ErrorNotInvoked, ErrorAlreadyFinished, ErrorTooManyOperations, ErrorInvalidFlags, ErrorInvalidMetadata, ErrorInvalidMessage, ErrorNotServerCompletionQueue, ErrorBatchTooBig, ErrorPayloadTypeMismatch, ErrorCompletionQueueShutdown, }

Result of a gRPC call.

If the caller satisfies the prerequisites of a particular operation, the GrpcCallStatus returned will be Ok. Receiving any other value listed here is an indication of a bug in the caller.

Based on grpc_call_error.

Variants

Ok

Everything went ok.

Error

Something failed, we don't know what.

ErrorNotOnServer

This method is not available on the server.

ErrorNotOnClient

This method is not available on the client.

ErrorAlreadyAccepted

This method must be called before server_accept.

ErrorAlreadyInvoked

This method must be called before invoke.

ErrorNotInvoked

This method must be called after invoke.

ErrorAlreadyFinished

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

ErrorTooManyOperations

There is already an outstanding read/write operation on the call.

ErrorInvalidFlags

The flags value was illegal for this call.

ErrorInvalidMetadata

Invalid metadata was passed to this call.

ErrorInvalidMessage

Invalid message was passed to this call.

ErrorNotServerCompletionQueue

Completion queue for notification has not been registered with the server.

ErrorBatchTooBig

This batch of operations leads to more operations than allowed.

ErrorPayloadTypeMismatch

Payload type requested is not the type registered.

ErrorCompletionQueueShutdown

Completion queue has been shut down.

Trait Implementations

impl PartialEq<GrpcCallStatus> for GrpcCallStatus[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Debug for GrpcCallStatus[src]

Auto Trait Implementations

impl Send for GrpcCallStatus

impl Sync for GrpcCallStatus

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]