Skip to main content

IntoPacket

Trait IntoPacket 

Source
pub trait IntoPacket {
    // Required method
    fn into_packet(self) -> Packet;
}
Expand description

Conversion into a packet stack used by composition helpers.

Required Methods§

Source

fn into_packet(self) -> Packet

Convert this value into a packet.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoPacket for Box<dyn Layer>

Implementors§

Source§

impl IntoPacket for Packet

Source§

impl<T> IntoPacket for T
where T: Layer,