Struct tonic::codec::EncodeBuf[][src]

pub struct EncodeBuf<'a> { /* fields omitted */ }

A specialized buffer to encode gRPC messages into.

Implementations

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]

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]

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

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

impl<B> BufMutExt for B where
    B: BufMut + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]