pub struct HybridJsonRpcMessageCodec<T> { /* private fields */ }Trait Implementations§
Source§impl<T: Clone> Clone for HybridJsonRpcMessageCodec<T>
impl<T: Clone> Clone for HybridJsonRpcMessageCodec<T>
Source§fn clone(&self) -> HybridJsonRpcMessageCodec<T>
fn clone(&self) -> HybridJsonRpcMessageCodec<T>
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: Debug> Debug for HybridJsonRpcMessageCodec<T>
impl<T: Debug> Debug for HybridJsonRpcMessageCodec<T>
Source§impl<T: DeserializeOwned> Decoder for HybridJsonRpcMessageCodec<T>
impl<T: DeserializeOwned> Decoder for HybridJsonRpcMessageCodec<T>
Source§type Error = HybridCodecError
type Error = HybridCodecError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<T>, HybridCodecError>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<T>, HybridCodecError>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§fn decode_eof(
&mut self,
buf: &mut BytesMut,
) -> Result<Option<T>, HybridCodecError>
fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<T>, HybridCodecError>
A default method available to be called when there are no more bytes
available to be read from the underlying I/O. Read more
Auto Trait Implementations§
impl<T> Freeze for HybridJsonRpcMessageCodec<T>
impl<T> RefUnwindSafe for HybridJsonRpcMessageCodec<T>
impl<T> Send for HybridJsonRpcMessageCodec<T>
impl<T> Sync for HybridJsonRpcMessageCodec<T>
impl<T> Unpin for HybridJsonRpcMessageCodec<T>
impl<T> UnsafeUnpin for HybridJsonRpcMessageCodec<T>
impl<T> UnwindSafe for HybridJsonRpcMessageCodec<T>
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