#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.