pub enum DataType {
Show 21 variants
ContactReport,
EmergencyAlert,
AbortCommand,
RoeUpdate,
TargetImage,
AudioIntercept,
MissionRetasking,
FormationChange,
HealthStatus,
CapabilityChange,
FormationUpdate,
TaskAssignment,
PositionUpdate,
Heartbeat,
SensorTelemetry,
EnvironmentData,
ModelUpdate,
DebugLog,
HistoricalTrack,
TrainingData,
Custom {
name: String,
qos_class: QoSClass,
},
}Expand description
Peat Protocol data types for QoS classification
Represents the semantic categories of data flowing through the mesh. Each type has a default QoS class and policy.
Variants§
ContactReport
Enemy/target contact report requiring immediate commander awareness
EmergencyAlert
Emergency alert (medical, safety, system failure)
AbortCommand
Abort/halt command requiring immediate execution
RoeUpdate
Rules of engagement update (safety-critical)
TargetImage
Target imagery for analysis
AudioIntercept
Audio intercept for intelligence
MissionRetasking
Mission retasking directive
FormationChange
Formation change command
HealthStatus
Node health status (battery, sensors, comms)
CapabilityChange
Capability advertisement change
FormationUpdate
Cell formation update
TaskAssignment
Task assignment
PositionUpdate
Periodic position update
Heartbeat
Heartbeat/keepalive
SensorTelemetry
Sensor telemetry (non-critical)
EnvironmentData
Environment data (weather, terrain)
ModelUpdate
AI model update distribution
DebugLog
Debug/diagnostic logs
HistoricalTrack
Historical track data
TrainingData
Training data for on-device ML
Custom
Custom data type with explicit QoS class
Implementations§
Source§impl DataType
impl DataType
Sourcepub fn default_class(&self) -> QoSClass
pub fn default_class(&self) -> QoSClass
Get the default QoS class for this data type
Sourcepub fn default_policy(&self) -> QoSPolicy
pub fn default_policy(&self) -> QoSPolicy
Get the default QoS policy for this data type
Sourcepub fn is_critical(&self) -> bool
pub fn is_critical(&self) -> bool
Check if this data type is mission-critical
Sourcepub fn is_preemptable(&self) -> bool
pub fn is_preemptable(&self) -> bool
Check if this data type can be preempted
Sourcepub fn all_predefined() -> &'static [DataType]
pub fn all_predefined() -> &'static [DataType]
Get all predefined data types (excluding Custom)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataType
impl<'de> Deserialize<'de> for DataType
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>,
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.