tof_dataclasses::serialization

Trait Packable

Source
pub trait Packable {
    const PACKET_TYPE: PacketType;

    // 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 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 Packable for TofCommand

Source§

const PACKET_TYPE: PacketType = PacketType::TofCommand

Source§

impl Packable for TofResponse

Source§

const PACKET_TYPE: PacketType = PacketType::TofResponse

Source§

impl Packable for RBCalibrations

Source§

const PACKET_TYPE: PacketType = PacketType::RBCalibration

Source§

impl Packable for RBCalibrationsFlightT

Source§

const PACKET_TYPE: PacketType = PacketType::RBCalibrationFlightT

Source§

impl Packable for RBCalibrationsFlightV

Source§

const PACKET_TYPE: PacketType = PacketType::RBCalibrationFlightV

Source§

impl Packable for AnalysisEngineConfig

Source§

const PACKET_TYPE: PacketType = PacketType::AnalysisEngineConfig

Source§

impl Packable for DataPublisherConfig

Source§

const PACKET_TYPE: PacketType = PacketType::DataPublisherConfig

Source§

impl Packable for LTBThresholdConfig

Source§

const PACKET_TYPE: PacketType = PacketType::LTBThresholdConfig

Source§

impl Packable for PreampBiasConfig

Source§

const PACKET_TYPE: PacketType = PacketType::PreampBiasConfig

Source§

impl Packable for RBChannelMaskConfig

Source§

const PACKET_TYPE: PacketType = PacketType::RBChannelMaskConfig

Source§

impl Packable for RunConfig

Source§

const PACKET_TYPE: PacketType = PacketType::RunConfig

Source§

impl Packable for TOFEventBuilderConfig

Source§

const PACKET_TYPE: PacketType = PacketType::TOFEventBuilderConfig

Source§

impl Packable for TofRBConfig

Source§

const PACKET_TYPE: PacketType = PacketType::TofRBConfig

Source§

impl Packable for TofRunConfig

Source§

const PACKET_TYPE: PacketType = PacketType::TofRunConfig

Source§

impl Packable for TriggerConfig

Source§

const PACKET_TYPE: PacketType = PacketType::TriggerConfig

Source§

impl Packable for TofCommandV2

Source§

const PACKET_TYPE: PacketType = PacketType::TofCommandV2

Source§

impl Packable for MasterTriggerEvent

Source§

const PACKET_TYPE: PacketType = PacketType::MasterTrigger

Source§

impl Packable for RBEvent

Source§

const PACKET_TYPE: PacketType = PacketType::RBEvent

Source§

impl Packable for RBWaveform

Source§

const PACKET_TYPE: PacketType = PacketType::RBWaveform

Source§

impl Packable for TofEvent

Source§

const PACKET_TYPE: PacketType = PacketType::TofEvent

Source§

impl Packable for TofEventSummary

Source§

const PACKET_TYPE: PacketType = PacketType::TofEventSummary

Source§

impl Packable for EVTBLDRHeartbeat

Source§

const PACKET_TYPE: PacketType = PacketType::EVTBLDRHeartbeat

Source§

impl Packable for HeartBeatDataSink

Source§

const PACKET_TYPE: PacketType = PacketType::HeartBeatDataSink

Source§

impl Packable for MTBHeartbeat

Source§

const PACKET_TYPE: PacketType = PacketType::MTBHeartbeat

Source§

impl Packable for RBPing

Source§

const PACKET_TYPE: PacketType = PacketType::RBPing

Source§

impl Packable for CPUMoniData

Source§

const PACKET_TYPE: PacketType = PacketType::CPUMoniData

Source§

impl Packable for LTBMoniData

Source§

const PACKET_TYPE: PacketType = PacketType::LTBMoniData

Source§

impl Packable for MtbMoniData

Source§

const PACKET_TYPE: PacketType = PacketType::MonitorMtb

Source§

impl Packable for PAMoniData

Source§

const PACKET_TYPE: PacketType = PacketType::PAMoniData

Source§

impl Packable for PBMoniData

Source§

const PACKET_TYPE: PacketType = PacketType::PBMoniData

Source§

impl Packable for RBMoniData

Source§

const PACKET_TYPE: PacketType = PacketType::RBMoniData

Source§

impl Packable for TofDetectorStatus

Source§

const PACKET_TYPE: PacketType = PacketType::TofDetectorStatus