Struct grpcio_sys::grpc_event
source · #[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§
source§impl Clone for grpc_event
impl Clone for grpc_event
source§fn clone(&self) -> grpc_event
fn clone(&self) -> grpc_event
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for grpc_event
impl Debug for grpc_event
impl Copy for grpc_event
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more