Type Alias MoneroWireCodec

Source
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>
where T: Clone + LevinBody, <T as LevinBody>::Command: Clone,

Source§

fn clone(&self) -> LevinMessageCodec<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for LevinMessageCodec<T>
where T: Debug + LevinBody, <T as LevinBody>::Command: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T> Decoder for LevinMessageCodec<T>
where T: LevinBody,

Source§

type Item = T

The type of decoded frames.
Source§

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>

Attempts to decode a frame from the provided buffer of bytes. Read more
Source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
Source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
Source§

impl<T> Default for LevinMessageCodec<T>
where T: LevinBody,

Source§

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,

Source§

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>

Encodes a frame into the buffer provided. Read more