Trait TofPackable

Source
pub trait TofPackable {
    const TOF_PACKET_TYPE: TofPacketType;
    const TOF_PACKET_TYPE_ALT: TofPacketType = TofPacketType::Unknown;

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

Can be wrapped within a TofPacket. To do, we just have to define a packet type

Required Associated Constants§

Provided Associated Constants§

Source

const TOF_PACKET_TYPE_ALT: TofPacketType = TofPacketType::Unknown

Provided Methods§

Source

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

Wrap myself in a TofPacket

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 TofPackable for TofResponse

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::TofResponse

Source§

impl TofPackable for RBCalibrationFlightT

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::RBCalibrationFlightT

Source§

impl TofPackable for RBCalibrationFlightV

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::RBCalibrationFlightV

Source§

impl TofPackable for RBCalibrations

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::RBCalibration

Source§

impl TofPackable for RBEvent

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::RBEvent

Source§

impl TofPackable for RBWaveform

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::RBWaveform

Source§

impl TofPackable for TofEvent

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::TofEvent

Source§

const TOF_PACKET_TYPE_ALT: TofPacketType = TofPacketType::TofEventDeprecated

Source§

impl TofPackable for CPUMoniData

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::CPUMoniData

Source§

impl TofPackable for DataSinkHB

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::DataSinkHB

Source§

impl TofPackable for EventBuilderHB

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::EventBuilderHB

Source§

impl TofPackable for MasterTriggerHB

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::MasterTriggerHB

Source§

impl TofPackable for LTBMoniData

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::LTBMoniData

Source§

impl TofPackable for MtbMoniData

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::MtbMoniData

Source§

impl TofPackable for PAMoniData

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::PAMoniData

Source§

impl TofPackable for PBMoniData

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::PBMoniData

Source§

impl TofPackable for RBMoniData

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::RBMoniData

Source§

impl TofPackable for TofCommand

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::TofCommandV2

Source§

impl TofPackable for AnalysisEngineConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::AnalysisEngineConfig

Source§

impl TofPackable for DataPublisherConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::DataPublisherConfig

Source§

impl TofPackable for LTBThresholdConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::LTBThresholdConfig

Source§

impl TofPackable for PreampBiasConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::PreampBiasConfig

Source§

impl TofPackable for RBChannelMaskConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::RBChannelMaskConfig

Source§

impl TofPackable for RunConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::RunConfig

Source§

impl TofPackable for TOFEventBuilderConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::TOFEventBuilderConfig

Source§

impl TofPackable for TofRBConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::TofRBConfig

Source§

impl TofPackable for TofRunConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::TofRunConfig

Source§

impl TofPackable for TriggerConfig

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::TriggerConfig

Source§

impl TofPackable for TofDetectorStatus

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::TofDetectorStatus

Source§

impl TofPackable for AckBfsw

Source§

const TOF_PACKET_TYPE: TofPacketType = TofPacketType::BfswAckPacket