Struct grpcio_sys::grpc_slice[][src]

#[repr(C)]
pub struct grpc_slice { pub refcount: *mut grpc_slice_refcount, pub data: grpc_slice_grpc_slice_data, }
Expand description

A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].

It can have an associated ref count which has a destruction routine to be run when the ref count reaches zero (see grpc_slice_new() and grp_slice_unref()). Multiple grpc_slice values may share a ref count.

If the slice does not have a refcount, it represents an inlined small piece of data that is copied by value.

Fields

refcount: *mut grpc_slice_refcountdata: grpc_slice_grpc_slice_data

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.