[][src]Struct brpc_sys::zero_copy::ZeroCopyBufMut

pub struct ZeroCopyBufMut { /* fields omitted */ }

Methods

impl ZeroCopyBufMut[src]

pub unsafe fn from_iobuf(ptr: *mut BrpcIOBuf) -> Self[src]

pub unsafe fn from_raw_ptr(ptr: *mut BrpcZeroCopyBufMut) -> Self[src]

Trait Implementations

impl BufMut for ZeroCopyBufMut[src]

fn has_remaining_mut(&self) -> bool[src]

Returns true if there is space in self for more bytes. Read more

unsafe fn bytes_vec_mut(&'a mut self, dst: &mut [&'a mut IoVec]) -> usize[src]

Fills dst with potentially multiple mutable slices starting at self's current position. Read more

fn put<T>(&mut self, src: T) where
    T: IntoBuf
[src]

Transfer bytes into self from src and advance the cursor by the number of bytes written. Read more

fn put_slice(&mut self, src: &[u8])[src]

Transfer bytes into self from src and advance the cursor by the number of bytes written. Read more

fn put_u8(&mut self, n: u8)[src]

Writes an unsigned 8 bit integer to self. Read more

fn put_i8(&mut self, n: i8)[src]

Writes a signed 8 bit integer to self. Read more

fn put_u16_be(&mut self, n: u16)[src]

Writes an unsigned 16 bit integer to self in big-endian byte order. Read more

fn put_u16_le(&mut self, n: u16)[src]

Writes an unsigned 16 bit integer to self in little-endian byte order. Read more

fn put_i16_be(&mut self, n: i16)[src]

Writes a signed 16 bit integer to self in big-endian byte order. Read more

fn put_i16_le(&mut self, n: i16)[src]

Writes a signed 16 bit integer to self in little-endian byte order. Read more

fn put_u32_be(&mut self, n: u32)[src]

Writes an unsigned 32 bit integer to self in big-endian byte order. Read more

fn put_u32_le(&mut self, n: u32)[src]

Writes an unsigned 32 bit integer to self in little-endian byte order. Read more

fn put_i32_be(&mut self, n: i32)[src]

Writes a signed 32 bit integer to self in big-endian byte order. Read more

fn put_i32_le(&mut self, n: i32)[src]

Writes a signed 32 bit integer to self in little-endian byte order. Read more

fn put_u64_be(&mut self, n: u64)[src]

Writes an unsigned 64 bit integer to self in the big-endian byte order. Read more

fn put_u64_le(&mut self, n: u64)[src]

Writes an unsigned 64 bit integer to self in little-endian byte order. Read more

fn put_i64_be(&mut self, n: i64)[src]

Writes a signed 64 bit integer to self in the big-endian byte order. Read more

fn put_i64_le(&mut self, n: i64)[src]

Writes a signed 64 bit integer to self in little-endian byte order. Read more

fn put_uint_be(&mut self, n: u64, nbytes: usize)[src]

Writes an unsigned n-byte integer to self in big-endian byte order. Read more

fn put_uint_le(&mut self, n: u64, nbytes: usize)[src]

Writes an unsigned n-byte integer to self in the little-endian byte order. Read more

fn put_int_be(&mut self, n: i64, nbytes: usize)[src]

Writes a signed n-byte integer to self in big-endian byte order. Read more

fn put_int_le(&mut self, n: i64, nbytes: usize)[src]

Writes a signed n-byte integer to self in little-endian byte order. Read more

fn put_f32_be(&mut self, n: f32)[src]

Writes an IEEE754 single-precision (4 bytes) floating point number to self in big-endian byte order. Read more

fn put_f32_le(&mut self, n: f32)[src]

Writes an IEEE754 single-precision (4 bytes) floating point number to self in little-endian byte order. Read more

fn put_f64_be(&mut self, n: f64)[src]

Writes an IEEE754 double-precision (8 bytes) floating point number to self in big-endian byte order. Read more

fn put_f64_le(&mut self, n: f64)[src]

Writes an IEEE754 double-precision (8 bytes) floating point number to self in little-endian byte order. Read more

fn by_ref(&mut self) -> &mut Self[src]

Creates a "by reference" adaptor for this instance of BufMut. Read more

fn writer(self) -> Writer<Self>[src]

Creates an adaptor which implements the Write trait for self. Read more

Auto Trait Implementations

impl !Send for ZeroCopyBufMut

impl !Sync for ZeroCopyBufMut

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]