#[repr(u8)]pub enum PacketType {
Show 42 variants
Unknown = 0,
RBEvent = 20,
TofEvent = 21,
RBWaveform = 22,
TofEventSummary = 23,
HeartBeatDataSink = 40,
MasterTrigger = 60,
TriggerConfig = 61,
MTBHeartbeat = 62,
EVTBLDRHeartbeat = 63,
RBChannelMaskConfig = 64,
TofRBConfig = 68,
AnalysisEngineConfig = 69,
RBEventHeader = 70,
TOFEventBuilderConfig = 71,
DataPublisherConfig = 72,
TofRunConfig = 73,
CPUMoniData = 80,
MonitorMtb = 90,
RBMoniData = 100,
PBMoniData = 101,
LTBMoniData = 102,
PAMoniData = 103,
RBEventMemoryView = 120,
RBCalibration = 130,
TofCommand = 140,
TofCommandV2 = 141,
TofResponse = 142,
RBCommand = 150,
RBPing = 160,
PreampBiasConfig = 161,
RunConfig = 162,
LTBThresholdConfig = 163,
TofDetectorStatus = 171,
ConfigBinary = 201,
LiftofRBBinary = 202,
LiftofBinaryService = 203,
LiftofCCBinary = 204,
RBCalibrationFlightV = 210,
RBCalibrationFlightT = 211,
BfswAckPacket = 212,
MultiPacket = 255,
}
Expand description
Types of serializable data structures used throughout the tof system
Variants§
Unknown = 0
RBEvent = 20
TofEvent = 21
RBWaveform = 22
TofEventSummary = 23
HeartBeatDataSink = 40
MasterTrigger = 60
TriggerConfig = 61
MTBHeartbeat = 62
EVTBLDRHeartbeat = 63
RBChannelMaskConfig = 64
TofRBConfig = 68
AnalysisEngineConfig = 69
RBEventHeader = 70
TOFEventBuilderConfig = 71
DataPublisherConfig = 72
TofRunConfig = 73
CPUMoniData = 80
MonitorMtb = 90
RBMoniData = 100
PBMoniData = 101
LTBMoniData = 102
PAMoniData = 103
RBEventMemoryView = 120
RBCalibration = 130
TofCommand = 140
TofCommandV2 = 141
TofResponse = 142
RBCommand = 150
RBPing = 160
PreampBiasConfig = 161
RunConfig = 162
LTBThresholdConfig = 163
TofDetectorStatus = 171
ConfigBinary = 201
LiftofRBBinary = 202
LiftofBinaryService = 203
LiftofCCBinary = 204
RBCalibrationFlightV = 210
RBCalibrationFlightT = 211
BfswAckPacket = 212
A klude which allows us to send bfsw ack packets through the TOF system
MultiPacket = 255
a MultiPacket consists of other TofPackets
Trait Implementations§
Source§impl Clone for PacketType
impl Clone for PacketType
Source§fn clone(&self) -> PacketType
fn clone(&self) -> PacketType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PacketType
impl Debug for PacketType
Source§impl<'de> Deserialize<'de> for PacketType
impl<'de> Deserialize<'de> for PacketType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PacketType
impl Display for PacketType
Source§impl From<u8> for PacketType
impl From<u8> for PacketType
Source§impl FromRandom for PacketType
impl FromRandom for PacketType
fn from_random() -> Self
Source§impl Hash for PacketType
impl Hash for PacketType
Source§impl PartialEq for PacketType
impl PartialEq for PacketType
Source§impl Serialize for PacketType
impl Serialize for PacketType
impl Copy for PacketType
impl Eq for PacketType
impl StructuralPartialEq for PacketType
Auto Trait Implementations§
impl Freeze for PacketType
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnwindSafe for PacketType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more