pub struct ProtobufConverter;
Expand description
Implementation for a converter between protobuf-encoded bodies and native objects.
Trait Implementations
sourceimpl Clone for ProtobufConverter
impl Clone for ProtobufConverter
sourcefn clone(&self) -> ProtobufConverter
fn clone(&self) -> ProtobufConverter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Convert for ProtobufConverter
impl Convert for ProtobufConverter
sourcefn body_to_operation(
&self,
body: RequestBody,
opcode: Opcode
) -> Result<NativeOperation>
fn body_to_operation(
&self,
body: RequestBody,
opcode: Opcode
) -> Result<NativeOperation>
Create a native operation object from a request body. Read more
sourcefn operation_to_body(&self, operation: NativeOperation) -> Result<RequestBody>
fn operation_to_body(&self, operation: NativeOperation) -> Result<RequestBody>
Create a request body from a native operation object. Read more
sourcefn body_to_result(
&self,
body: ResponseBody,
opcode: Opcode
) -> Result<NativeResult>
fn body_to_result(
&self,
body: ResponseBody,
opcode: Opcode
) -> Result<NativeResult>
Create a native result object from a response body. Read more
sourcefn result_to_body(&self, result: NativeResult) -> Result<ResponseBody>
fn result_to_body(&self, result: NativeResult) -> Result<ResponseBody>
Create a response body from a native result object. Read more
sourceimpl Debug for ProtobufConverter
impl Debug for ProtobufConverter
impl Copy for ProtobufConverter
Auto Trait Implementations
impl RefUnwindSafe for ProtobufConverter
impl Send for ProtobufConverter
impl Sync for ProtobufConverter
impl Unpin for ProtobufConverter
impl UnwindSafe for ProtobufConverter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more