pub type MoneroWireCodec = LevinMessageCodec<Message>;
Aliased Type§
struct MoneroWireCodec { /* private fields */ }
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes
Trait Implementations
Source§impl<T> Clone for LevinMessageCodec<T>
impl<T> Clone for LevinMessageCodec<T>
Source§fn clone(&self) -> LevinMessageCodec<T>
fn clone(&self) -> LevinMessageCodec<T>
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<T> Debug for LevinMessageCodec<T>
impl<T> Debug for LevinMessageCodec<T>
Source§impl<T> Decoder for LevinMessageCodec<T>where
T: LevinBody,
impl<T> Decoder for LevinMessageCodec<T>where
T: LevinBody,
Source§type Error = BucketError
type Error = BucketError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<<LevinMessageCodec<T> as Decoder>::Item>, <LevinMessageCodec<T> as Decoder>::Error>
fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<<LevinMessageCodec<T> as Decoder>::Item>, <LevinMessageCodec<T> as Decoder>::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl<T> Default for LevinMessageCodec<T>where
T: LevinBody,
impl<T> Default for LevinMessageCodec<T>where
T: LevinBody,
Source§fn default() -> LevinMessageCodec<T>
fn default() -> LevinMessageCodec<T>
Returns the “default value” for a type. Read more
Source§impl<T> Encoder<LevinMessage<T>> for LevinMessageCodec<T>where
T: LevinBody,
impl<T> Encoder<LevinMessage<T>> for LevinMessageCodec<T>where
T: LevinBody,
Source§type Error = BucketError
type Error = BucketError
The type of encoding errors. Read more
Source§fn encode(
&mut self,
item: LevinMessage<T>,
dst: &mut BytesMut,
) -> Result<(), <LevinMessageCodec<T> as Encoder<LevinMessage<T>>>::Error>
fn encode( &mut self, item: LevinMessage<T>, dst: &mut BytesMut, ) -> Result<(), <LevinMessageCodec<T> as Encoder<LevinMessage<T>>>::Error>
Encodes a frame into the buffer provided. Read more