Skip to main content

RtrEncode

Trait RtrEncode 

Source
pub trait RtrEncode {
    // Required method
    fn encode(&self) -> Vec<u8> ;
}
Expand description

Trait for encoding RTR PDUs to bytes

Required Methods§

Source

fn encode(&self) -> Vec<u8>

Encode this PDU to a byte vector

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§