[−][src]Struct tonic::codec::EncodeBuf  
A specialized buffer to encode gRPC messages into.
Methods
impl<'_> EncodeBuf<'_>[src]
pub fn reserve(&mut self, additional: usize)[src]
Reserves capacity for at least additional more bytes to be inserted
into the buffer.
More than additional bytes may be reserved in order to avoid frequent
reallocations. A call to reserve may result in an allocation.
Trait Implementations
impl<'_> BufMut for EncodeBuf<'_>[src]
fn remaining_mut(&self) -> usize[src]
unsafe fn advance_mut(&mut self, cnt: usize)[src]
fn bytes_mut(&mut self) -> &mut [MaybeUninit<u8>][src]
fn has_remaining_mut(&self) -> bool[src]
fn bytes_vectored_mut(&'a mut self, dst: &mut [IoSliceMut<'a>]) -> usize[src]
fn put<T>(&mut self, src: T) where
    T: Buf, [src]
T: Buf,
fn put_slice(&mut self, src: &[u8])[src]
fn put_u8(&mut self, n: u8)[src]
fn put_i8(&mut self, n: i8)[src]
fn put_u16(&mut self, n: u16)[src]
fn put_u16_le(&mut self, n: u16)[src]
fn put_i16(&mut self, n: i16)[src]
fn put_i16_le(&mut self, n: i16)[src]
fn put_u32(&mut self, n: u32)[src]
fn put_u32_le(&mut self, n: u32)[src]
fn put_i32(&mut self, n: i32)[src]
fn put_i32_le(&mut self, n: i32)[src]
fn put_u64(&mut self, n: u64)[src]
fn put_u64_le(&mut self, n: u64)[src]
fn put_i64(&mut self, n: i64)[src]
fn put_i64_le(&mut self, n: i64)[src]
fn put_u128(&mut self, n: u128)[src]
fn put_u128_le(&mut self, n: u128)[src]
fn put_i128(&mut self, n: i128)[src]
fn put_i128_le(&mut self, n: i128)[src]
fn put_uint(&mut self, n: u64, nbytes: usize)[src]
fn put_uint_le(&mut self, n: u64, nbytes: usize)[src]
fn put_int(&mut self, n: i64, nbytes: usize)[src]
fn put_int_le(&mut self, n: i64, nbytes: usize)[src]
fn put_f32(&mut self, n: f32)[src]
fn put_f32_le(&mut self, n: f32)[src]
fn put_f64(&mut self, n: f64)[src]
fn put_f64_le(&mut self, n: f64)[src]
impl<'a> Debug for EncodeBuf<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for EncodeBuf<'a>
impl<'a> Send for EncodeBuf<'a>
impl<'a> Sync for EncodeBuf<'a>
impl<'a> Unpin for EncodeBuf<'a>
impl<'a> !UnwindSafe for EncodeBuf<'a>
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T[src]
ⓘImportant traits for &'_ mut F
impl<B> BufMutExt for B where
    B: BufMut + ?Sized, [src]
B: BufMut + ?Sized,
fn limit(self, limit: usize) -> Limit<Self>[src]
fn writer(self) -> Writer<Self>[src]
fn chain_mut<U>(self, next: U) -> Chain<Self, U> where
    U: BufMut, [src]
U: BufMut,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
ⓘImportant traits for Instrumented<T>fn instrument(self, span: Span) -> Instrumented<Self>[src]
ⓘImportant traits for Instrumented<T>
ⓘImportant traits for Instrumented<T>fn in_current_span(self) -> Instrumented<Self>[src]
ⓘImportant traits for Instrumented<T>
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<V, T> VZip<V> for T where
    V: MultiLane<T>, [src]
V: MultiLane<T>,
impl<T> WithSubscriber for T[src]
ⓘImportant traits for WithDispatch<T>fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, [src]
ⓘImportant traits for WithDispatch<T>
S: Into<Dispatch>,
ⓘImportant traits for WithDispatch<T>fn with_current_subscriber(self) -> WithDispatch<Self>[src]
ⓘImportant traits for WithDispatch<T>