Struct grpcio::Marshaller
source · [−]pub struct Marshaller<T> {
pub ser: fn(_: &T, _: &mut GrpcSlice) -> Result<()>,
pub de: fn(_: MessageReader) -> Result<T>,
}
Expand description
Defines how to serialize and deserialize between the specialized type and byte slice.
Fields
ser: fn(_: &T, _: &mut GrpcSlice) -> Result<()>
The serialize function.
de: fn(_: MessageReader) -> Result<T>
The deserialize function.
Auto Trait Implementations
impl<T> RefUnwindSafe for Marshaller<T>
impl<T> Send for Marshaller<T>
impl<T> Sync for Marshaller<T>
impl<T> Unpin for Marshaller<T>
impl<T> UnwindSafe for Marshaller<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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