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", so this trait is not object safe.

Implementors§

Source§

impl Frameable for TelemetryPacket

Source§

const CRFRAMEOBJECT_TYPE: CRFrameObjectType = CRFrameObjectType::TelemetryPacket

Source§

impl Frameable for TofPacket

Source§

const CRFRAMEOBJECT_TYPE: CRFrameObjectType = CRFrameObjectType::TofPacket