Searched refs:GrpcByteBuffer (Results 1 – 2 of 2) sorted by relevance
237 pub struct GrpcByteBuffer(*mut grpc_byte_buffer); struct239 impl GrpcByteBuffer { implementation241 pub unsafe fn from_raw(ptr: *mut grpc_byte_buffer) -> GrpcByteBuffer { in from_raw() argument242 GrpcByteBuffer(ptr) in from_raw()246 impl<'a> From<&'a [GrpcSlice]> for GrpcByteBuffer { implementation256 GrpcByteBuffer(grpc_raw_byte_buffer_create((*s).get(), len)) in from()261 impl<'a> From<&'a GrpcSlice> for GrpcByteBuffer { implementation266 fn from(s: &'a GrpcSlice) -> GrpcByteBuffer { in from() argument274 GrpcByteBuffer(grpc_raw_byte_buffer_create((*s).get(), 1)) in from()279 impl Clone for GrpcByteBuffer { implementation[all …]
19 use crate::buf::{GrpcByteBuffer, GrpcByteBufferReader, GrpcSlice};204 pub fn take_recv_message(&self) -> Option<GrpcByteBuffer> { in take_recv_message() argument209 Some(unsafe { GrpcByteBuffer::from_raw(ptr) }) in take_recv_message()