pub struct Decoder<'buf> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'buf> Decode for Decoder<'buf>
impl<'buf> Decode for Decoder<'buf>
fn eof(&self) -> bool
fn position(&self) -> usize
fn len(&self) -> usize
fn advance(&mut self, size: usize)
fn sub_decoder(&mut self, size: usize) -> impl Decode
fn buffer(&self) -> &[u8] ⓘ
fn decode_sint32(&mut self) -> Result<i32, ProtoError>
fn decode_sint64(&mut self) -> Result<i64, ProtoError>
fn decode_uint32(&mut self) -> Result<u32, ProtoError>
fn decode_uint64(&mut self) -> Result<u64, ProtoError>
fn decode_sfixed32(&mut self) -> Result<i32, ProtoError>
fn decode_sfixed64(&mut self) -> Result<i64, ProtoError>
fn decode_fixed32(&mut self) -> Result<u32, ProtoError>
fn decode_fixed64(&mut self) -> Result<u64, ProtoError>
fn decode_float(&mut self) -> Result<f32, ProtoError>
fn decode_double(&mut self) -> Result<f64, ProtoError>
fn decode_bytes(&mut self) -> Result<Vec<u8>, ProtoError>
fn decode_string(&mut self) -> Result<String, ProtoError>
fn decode_int32(&mut self) -> Result<i32, ProtoError>
fn decode_int64(&mut self) -> Result<i64, ProtoError>
fn decode_bool(&mut self) -> Result<bool, ProtoError>
fn decode_tag(&mut self) -> Result<Tag, ProtoError>
Auto Trait Implementations§
impl<'buf> Freeze for Decoder<'buf>
impl<'buf> RefUnwindSafe for Decoder<'buf>
impl<'buf> Send for Decoder<'buf>
impl<'buf> Sync for Decoder<'buf>
impl<'buf> Unpin for Decoder<'buf>
impl<'buf> UnsafeUnpin for Decoder<'buf>
impl<'buf> UnwindSafe for Decoder<'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