Skip to main content

Packet

Trait Packet 

Source
pub trait Packet:
    'static
    + Clone
    + Ord
    + PartialOrd
    + Eq
    + PartialEq
    + Hash
    + Debug
    + Sync
    + Send
    + EncodedLen
    + EncodeToSlice
    + EncodeToWrite
    + DecodeFromRead
    + DecodeFromReadPrefix {
    // Required method
    fn wire() -> WireType;
}
Expand description

A packet.

Required Methods§

Source

fn wire() -> WireType

Gets the wire type.

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§