[−][src]Struct grpcio_sys::grpc_slice_refcount_vtable
Slice API
A slice represents a contiguous reference counted array of bytes. It is cheap to take references to a slice, and it is cheap to create a slice pointing to a subset of another slice.
The data-structure for slices is exposed here to allow non-gpr code to build slices from whatever data they have available.
When defining interfaces that handle slices, care should be taken to define reference ownership semantics (who should call unref?) and mutability constraints (is the callee allowed to modify the slice?)
Fields
ref_: Option<unsafe extern "C" fn(arg1: *mut c_void)>
unref: Option<unsafe extern "C" fn(arg1: *mut c_void)>
eq: Option<unsafe extern "C" fn(a: grpc_slice, b: grpc_slice) -> c_int>
hash: Option<unsafe extern "C" fn(slice: grpc_slice) -> u32>
Trait Implementations
impl Clone for grpc_slice_refcount_vtable
[src]
fn clone(&self) -> grpc_slice_refcount_vtable
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for grpc_slice_refcount_vtable
[src]
impl Debug for grpc_slice_refcount_vtable
[src]
Auto Trait Implementations
impl Sync for grpc_slice_refcount_vtable
impl Send for grpc_slice_refcount_vtable
impl Unpin for grpc_slice_refcount_vtable
impl RefUnwindSafe for grpc_slice_refcount_vtable
impl UnwindSafe for grpc_slice_refcount_vtable
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,