Trait IntoPacket

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

Allow types implementing BinWrite to be easily converted to a Packet.

Required Methods§

Source

fn into_packet(self) -> Packet

Convert the current type to a Packet.

Implementations on Foreign Types§

Source§

impl<T: for<'a> BinWrite<Args<'a> = ()> + WriteEndian> IntoPacket for &T

Implementors§