pub struct DeProtobuf;Expand description
Protobuf deserialiser.
Implementations§
Source§impl DeProtobuf
impl DeProtobuf
Sourcepub fn decode_bytes<Output>(input: &[u8]) -> Result<Output, DeBinaryError>
pub fn decode_bytes<Output>(input: &[u8]) -> Result<Output, DeBinaryError>
Decodes a byte slice into the target Output type using prost.
Trait Implementations§
Source§impl Debug for DeProtobuf
impl Debug for DeProtobuf
Source§impl Default for DeProtobuf
impl Default for DeProtobuf
Source§fn default() -> DeProtobuf
fn default() -> DeProtobuf
Returns the “default value” for a type. Read more
Source§impl<'a, Output> Deserialiser<&'a [u8], Output> for DeProtobuf
impl<'a, Output> Deserialiser<&'a [u8], Output> for DeProtobuf
type Error = DeBinaryError
Source§impl<Output> Deserialiser<Bytes, Output> for DeProtobuf
impl<Output> Deserialiser<Bytes, Output> for DeProtobuf
type Error = DeBinaryError
Auto Trait Implementations§
impl Freeze for DeProtobuf
impl RefUnwindSafe for DeProtobuf
impl Send for DeProtobuf
impl Sync for DeProtobuf
impl Unpin for DeProtobuf
impl UnsafeUnpin for DeProtobuf
impl UnwindSafe for DeProtobuf
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more