pub struct PacketAggregator;Expand description
Peat-specific packet aggregator for hierarchical telemetry summarization
Bridges peat-mesh routing layer with peat-protocol aggregation logic.
Implementations§
Source§impl PacketAggregator
impl PacketAggregator
Sourcepub fn extract_squad_summary(
&self,
packet: &DataPacket,
) -> Result<SquadSummary, AggregationError>
pub fn extract_squad_summary( &self, packet: &DataPacket, ) -> Result<SquadSummary, AggregationError>
Deserialize a SquadSummary from an aggregated telemetry packet
Trait Implementations§
Source§impl Aggregator for PacketAggregator
impl Aggregator for PacketAggregator
Source§fn aggregate_telemetry(
&self,
group_id: &str,
leader_id: &str,
telemetry_packets: Vec<DataPacket>,
) -> Result<DataPacket, AggregationError>
fn aggregate_telemetry( &self, group_id: &str, leader_id: &str, telemetry_packets: Vec<DataPacket>, ) -> Result<DataPacket, AggregationError>
Aggregate telemetry packets into a summary packet Read more
Source§fn extract_summary_bytes(
&self,
packet: &DataPacket,
) -> Result<Vec<u8>, AggregationError>
fn extract_summary_bytes( &self, packet: &DataPacket, ) -> Result<Vec<u8>, AggregationError>
Extract a summary from an aggregated telemetry packet Read more
Auto Trait Implementations§
impl Freeze for PacketAggregator
impl RefUnwindSafe for PacketAggregator
impl Send for PacketAggregator
impl Sync for PacketAggregator
impl Unpin for PacketAggregator
impl UnsafeUnpin for PacketAggregator
impl UnwindSafe for PacketAggregator
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> 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>
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 more