Skip to main content

Frameable

Trait Frameable 

Source
pub trait Frameable {
    const CRFRAMEOBJECT_TYPE: CRFrameObjectType;

    // Provided method
    fn pack(&self) -> CRFrameObject
       where Self: Serialization { ... }
}
Expand description

Allows to pack a certain structure within a CRFrameObject

Required Associated Constants§

Provided Methods§

Source

fn pack(&self) -> CRFrameObject
where Self: Serialization,

Wrap myself in a CRFrameObject

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Frameable for McEvent

Source§

const CRFRAMEOBJECT_TYPE: CRFrameObjectType = CRFrameObjectType::McTree

Source§

impl Frameable for TelemetryPacket

Source§

const CRFRAMEOBJECT_TYPE: CRFrameObjectType = CRFrameObjectType::TelemetryPacket

Source§

impl Frameable for TofPacket

Source§

const CRFRAMEOBJECT_TYPE: CRFrameObjectType = CRFrameObjectType::TofPacket