FromPacket

Trait FromPacket 

Source
pub trait FromPacket: Sized {
    // Required method
    fn from_packet(pack: Packet) -> Result<Self>;
}
Expand description

Trait for types which can be converted by a Packet

Required Methods§

Source

fn from_packet(pack: Packet) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§