pub struct Encoder<'buf> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'buf> Encode for Encoder<'buf>
impl<'buf> Encode for Encoder<'buf>
fn encode_sint32(&mut self, n: i32)
fn encode_sint64(&mut self, n: i64)
fn encode_uint32(&mut self, n: u32)
fn encode_uint64(&mut self, n: u64)
fn encode_sfixed32(&mut self, n: i32)
fn encode_sfixed64(&mut self, n: i64)
fn encode_fixed32(&mut self, n: u32)
fn encode_fixed64(&mut self, n: u64)
fn encode_float(&mut self, n: f32)
fn encode_double(&mut self, n: f64)
fn encode_bytes(&mut self, b: &[u8])
fn encode_tag(&mut self, tag: Tag)
fn encode_int32(&mut self, n: i32)
fn encode_int64(&mut self, n: i64)
fn encode_bool(&mut self, b: bool)
fn encode_str(&mut self, s: &str)
fn encode_string(&mut self, s: String)
Auto Trait Implementations§
impl<'buf> !UnwindSafe for Encoder<'buf>
impl<'buf> Freeze for Encoder<'buf>
impl<'buf> RefUnwindSafe for Encoder<'buf>
impl<'buf> Send for Encoder<'buf>
impl<'buf> Sync for Encoder<'buf>
impl<'buf> Unpin for Encoder<'buf>
impl<'buf> UnsafeUnpin for Encoder<'buf>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request