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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more