pub struct FlatBuffersCodec<T, U> { /* private fields */ }Expand description
TODO: codec still has copy step due to tonic DecodeBuf and EncodeBuf implementation.
Implementations§
Source§impl<T, U> FlatBuffersCodec<T, U>
impl<T, U> FlatBuffersCodec<T, U>
Trait Implementations§
Source§impl<T: Clone, U: Clone> Clone for FlatBuffersCodec<T, U>
impl<T: Clone, U: Clone> Clone for FlatBuffersCodec<T, U>
Source§fn clone(&self) -> FlatBuffersCodec<T, U>
fn clone(&self) -> FlatBuffersCodec<T, U>
Returns a duplicate 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<T, U> Codec for FlatBuffersCodec<T, U>
impl<T, U> Codec for FlatBuffersCodec<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for FlatBuffersCodec<T, U>
impl<T, U> RefUnwindSafe for FlatBuffersCodec<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for FlatBuffersCodec<T, U>
impl<T, U> Sync for FlatBuffersCodec<T, U>
impl<T, U> Unpin for FlatBuffersCodec<T, U>
impl<T, U> UnwindSafe for FlatBuffersCodec<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request