Skip to main content

Encode

Trait Encode 

Source
pub trait Encode {
    // Required method
    fn encode(&self, buf: &mut BytesMut);
}
Expand description

Encodes a value into an existing byte buffer.

Required Methods§

Source

fn encode(&self, buf: &mut BytesMut)

Appends this value’s wire representation to buf.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Encode for PlcValue

Source§

fn encode(&self, buf: &mut BytesMut)

Source§

impl Encode for UdtData

Source§

fn encode(&self, buf: &mut BytesMut)

Implementors§