Struct grpcio_sys::grpc_event [−][src]
#[repr(C)]pub struct grpc_event {
pub type_: grpc_completion_type,
pub success: c_int,
pub tag: *mut c_void,
}
Expand description
The result of an operation.
Returned by a completion queue when the operation started with tag.
Fields
type_: grpc_completion_type
The type of the completion.
success: c_int
If the grpc_completion_type is GRPC_OP_COMPLETE, this field indicates whether the operation was successful or not; 0 in case of failure and non-zero in case of success. If grpc_completion_type is GRPC_QUEUE_SHUTDOWN or GRPC_QUEUE_TIMEOUT, this field is guaranteed to be 0
tag: *mut c_void
The tag passed to grpc_call_start_batch etc to start this operation. Only* GRPC_OP_COMPLETE has a tag. For all other grpc_completion_type values, tag is uninitialized.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for grpc_event
impl !Send for grpc_event
impl !Sync for grpc_event
impl Unpin for grpc_event
impl UnwindSafe for grpc_event
Blanket Implementations
Mutably borrows from an owned value. Read more