pub struct ProtobufConverter;
Expand description
Implementation for a converter between protobuf-encoded bodies and native objects.
Trait Implementations§
Source§impl Clone for ProtobufConverter
impl Clone for ProtobufConverter
Source§fn clone(&self) -> ProtobufConverter
fn clone(&self) -> ProtobufConverter
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Convert for ProtobufConverter
impl Convert for ProtobufConverter
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
Source§impl Debug for ProtobufConverter
impl Debug for ProtobufConverter
impl Copy for ProtobufConverter
Auto Trait Implementations§
impl Freeze for ProtobufConverter
impl RefUnwindSafe for ProtobufConverter
impl Send for ProtobufConverter
impl Sync for ProtobufConverter
impl Unpin for ProtobufConverter
impl UnwindSafe for ProtobufConverter
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