Skip to main content

Decode

Trait Decode 

Source
pub trait Decode: Sized {
    // Required method
    fn decode(buf: &mut impl Buf) -> Result<Self>;
}
Expand description

Decodes a value from a byte buffer.

Required Methods§

Source

fn decode(buf: &mut impl Buf) -> Result<Self>

Consumes and decodes one value from buf.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Decode for PlcValue

Source§

fn decode(buf: &mut impl Buf) -> Result<Self>

Source§

impl Decode for UdtData

Source§

fn decode(buf: &mut impl Buf) -> Result<Self>

Implementors§