#[non_exhaustive]pub enum AnyPdu {
Show 72 variants
EntityState(EntityStatePdu),
Fire(FirePdu),
Detonation(DetonationPdu),
Collision(CollisionPdu),
ServiceRequest(ServiceRequestPdu),
ResupplyOffer(ResupplyOfferPdu),
ResupplyReceived(ResupplyReceivedPdu),
ResupplyCancel(ResupplyCancelPdu),
RepairComplete(RepairCompletePdu),
RepairResponse(RepairResponsePdu),
CreateEntity(CreateEntityPdu),
RemoveEntity(RemoveEntityPdu),
StartResume(StartResumePdu),
StopFreeze(StopFreezePdu),
Acknowledge(AcknowledgePdu),
ActionRequest(ActionRequestPdu),
ActionResponse(ActionResponsePdu),
DataQuery(DataQueryPdu),
SetData(SetDataPdu),
Data(DataPdu),
EventReport(EventReportPdu),
Comment(CommentPdu),
ElectromagneticEmissions(ElectromagneticEmissionsPdu),
Designator(DesignatorPdu),
Transmitter(TransmitterPdu),
Signal(SignalPdu),
Receiver(ReceiverPdu),
IFF(IFFPdu),
UnderwaterAcoustic(UnderwaterAcousticPdu),
SupplementalEmission(SupplementalEmissionPdu),
IntercomSignal(IntercomSignalPdu),
IntercomControl(IntercomControlPdu),
AggregateState(AggregateStatePdu),
IsGroupOf(IsGroupOfPdu),
TransferOwnership(TransferOwnershipPdu),
IsPartOf(IsPartOfPdu),
MinefieldState(MinefieldStatePdu),
MinefieldQuery(MinefieldQueryPdu),
MinefieldData(MinefieldDataPdu),
MinefieldResponseNack(MinefieldResponseNackPdu),
EnvironmentalProcess(EnvironmentalProcessPdu),
GriddedData(GriddedDataPdu),
PointObjectState(PointObjectStatePdu),
LinearObjectState(LinearObjectStatePdu),
ArealObjectState(ArealObjectStatePdu),
TimeSpacePositionInformation(TimeSpacePositionInformationPdu),
Appearance(AppearancePdu),
ArticulatedParts(ArticulatedPartsPdu),
LiveEntityFire(LiveEntityFirePdu),
LiveEntityDetonation(LiveEntityDetonationPdu),
CreateEntityReliable(CreateEntityReliablePdu),
RemoveEntityReliable(RemoveEntityReliablePdu),
StartResumeReliable(StartResumeReliablePdu),
StopFreezeReliable(StopFreezeReliablePdu),
AcknowledgeReliable(AcknowledgeReliablePdu),
ActionRequestReliable(ActionRequestReliablePdu),
ActionResponseReliable(ActionResponseReliablePdu),
DataQueryReliable(DataQueryReliablePdu),
SetDataReliable(SetDataReliablePdu),
DataReliable(DataReliablePdu),
EventReportReliable(EventReportReliablePdu),
CommentReliable(CommentReliablePdu),
RecordReliable(RecordReliablePdu),
SetRecordReliable(SetRecordReliablePdu),
RecordQueryReliable(RecordQueryReliablePdu),
CollisionElastic(CollisionElasticPdu),
EntityStateUpdate(EntityStateUpdatePdu),
DirectedEnergyFire(DirectedEnergyFirePdu),
EntityDamageStatus(EntityDamageStatusPdu),
InformationOperationsAction(InformationOperationsActionPdu),
InformationOperationsReport(InformationOperationsReportPdu),
Attribute(AttributePdu),
}Expand description
Any PDU, for decoding datagrams whose PDU type isn’t known in advance
Each variant holds one PDU and is named after its PduType. Decode with
AnyPdu::deserialize, or AnyPdu::deserialize_all for a datagram that
may hold several PDUs, then match on the variants you handle:
use open_dis_rust::{prelude::*, simulation_management::AcknowledgePdu};
let datagram = AcknowledgePdu::new().to_bytes()?;
match AnyPdu::deserialize(&mut datagram.as_slice())? {
AnyPdu::Acknowledge(ack) => println!("acknowledged request {}", ack.request_id),
AnyPdu::EntityState(pdu) => println!("entity {:?}", pdu.entity_id),
other => println!("ignoring {:?} PDU", other.pdu_type()),
}Every PDU converts into an AnyPdu with From, so PDUs of different
types can be kept in one collection and sent with AnyPdu::serialize.
New variants may be added in minor releases, for example for a later
version of the standard, so a match needs a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EntityState(EntityStatePdu)
Fire(FirePdu)
Detonation(DetonationPdu)
Collision(CollisionPdu)
ServiceRequest(ServiceRequestPdu)
ResupplyOffer(ResupplyOfferPdu)
ResupplyReceived(ResupplyReceivedPdu)
ResupplyCancel(ResupplyCancelPdu)
RepairComplete(RepairCompletePdu)
RepairResponse(RepairResponsePdu)
CreateEntity(CreateEntityPdu)
RemoveEntity(RemoveEntityPdu)
StartResume(StartResumePdu)
StopFreeze(StopFreezePdu)
Acknowledge(AcknowledgePdu)
ActionRequest(ActionRequestPdu)
ActionResponse(ActionResponsePdu)
DataQuery(DataQueryPdu)
SetData(SetDataPdu)
Data(DataPdu)
EventReport(EventReportPdu)
Comment(CommentPdu)
ElectromagneticEmissions(ElectromagneticEmissionsPdu)
Designator(DesignatorPdu)
Transmitter(TransmitterPdu)
Signal(SignalPdu)
Receiver(ReceiverPdu)
IFF(IFFPdu)
UnderwaterAcoustic(UnderwaterAcousticPdu)
SupplementalEmission(SupplementalEmissionPdu)
IntercomSignal(IntercomSignalPdu)
IntercomControl(IntercomControlPdu)
AggregateState(AggregateStatePdu)
IsGroupOf(IsGroupOfPdu)
TransferOwnership(TransferOwnershipPdu)
IsPartOf(IsPartOfPdu)
MinefieldState(MinefieldStatePdu)
MinefieldQuery(MinefieldQueryPdu)
MinefieldData(MinefieldDataPdu)
MinefieldResponseNack(MinefieldResponseNackPdu)
EnvironmentalProcess(EnvironmentalProcessPdu)
GriddedData(GriddedDataPdu)
PointObjectState(PointObjectStatePdu)
LinearObjectState(LinearObjectStatePdu)
ArealObjectState(ArealObjectStatePdu)
TimeSpacePositionInformation(TimeSpacePositionInformationPdu)
Appearance(AppearancePdu)
ArticulatedParts(ArticulatedPartsPdu)
LiveEntityFire(LiveEntityFirePdu)
LiveEntityDetonation(LiveEntityDetonationPdu)
CreateEntityReliable(CreateEntityReliablePdu)
RemoveEntityReliable(RemoveEntityReliablePdu)
StartResumeReliable(StartResumeReliablePdu)
StopFreezeReliable(StopFreezeReliablePdu)
AcknowledgeReliable(AcknowledgeReliablePdu)
ActionRequestReliable(ActionRequestReliablePdu)
ActionResponseReliable(ActionResponseReliablePdu)
DataQueryReliable(DataQueryReliablePdu)
SetDataReliable(SetDataReliablePdu)
DataReliable(DataReliablePdu)
EventReportReliable(EventReportReliablePdu)
CommentReliable(CommentReliablePdu)
RecordReliable(RecordReliablePdu)
SetRecordReliable(SetRecordReliablePdu)
RecordQueryReliable(RecordQueryReliablePdu)
CollisionElastic(CollisionElasticPdu)
EntityStateUpdate(EntityStateUpdatePdu)
DirectedEnergyFire(DirectedEnergyFirePdu)
EntityDamageStatus(EntityDamageStatusPdu)
InformationOperationsAction(InformationOperationsActionPdu)
InformationOperationsReport(InformationOperationsReportPdu)
Attribute(AttributePdu)
Implementations§
Source§impl AnyPdu
impl AnyPdu
Sourcepub fn protocol_family(&self) -> ProtocolFamily
pub fn protocol_family(&self) -> ProtocolFamily
The PDU’s protocol family
Sourcepub fn exercise_id(&self) -> ExerciseIdentifier
pub fn exercise_id(&self) -> ExerciseIdentifier
The exercise the PDU belongs to, from its header
Sourcepub fn serialize(&mut self, buf: &mut Vec<u8>) -> DISResult<()>
pub fn serialize(&mut self, buf: &mut Vec<u8>) -> DISResult<()>
Encodes the PDU and appends it to buf, as Pdu::serialize does.
§Errors
Will return DISError in the same cases as Pdu::serialize.
Source§impl AnyPdu
impl AnyPdu
Sourcepub fn deserialize(buf: &mut &[u8]) -> DISResult<Self>
pub fn deserialize(buf: &mut &[u8]) -> DISResult<Self>
Decodes one PDU of any type from the front of buf, advancing buf past it
The PDU type in the header picks the PDU to decode. As with
Pdu::deserialize, exactly the number of octets given by the header’s length
field are consumed, so another bundled PDU after it is left in buf. On error,
buf is left unchanged.
§Errors
Will return DISError if buf is shorter than a header, its PDU type is not a
defined PDU type, or the rest is not a valid PDU of that type.
Sourcepub fn deserialize_all(
datagram: &[u8],
) -> impl Iterator<Item = DISResult<Self>> + '_
pub fn deserialize_all( datagram: &[u8], ) -> impl Iterator<Item = DISResult<Self>> + '_
Decodes every PDU in a datagram, which the standard allows to hold several
Each item is the result of AnyPdu::deserialize on what is left of the datagram.
When a PDU cannot be decoded, such as one that is malformed or of a PDU type the
standard does not define, its error is yielded and decoding carries on after it if
its header’s length field fits in the datagram. Otherwise, the error is the last item.
use open_dis_rust::{
prelude::*,
simulation_management::{AcknowledgePdu, CommentPdu},
};
let mut datagram = Vec::new();
AcknowledgePdu::new().serialize(&mut datagram)?;
CommentPdu::new().serialize(&mut datagram)?;
for pdu in AnyPdu::deserialize_all(&datagram) {
println!("{:?}", pdu?.pdu_type());
}Sourcepub fn to_bytes(&mut self) -> DISResult<Vec<u8>>
pub fn to_bytes(&mut self) -> DISResult<Vec<u8>>
Encodes the PDU into a new buffer, as Pdu::to_bytes does.
§Errors
Will return DISError in the same cases as Pdu::serialize.
Trait Implementations§
Source§impl From<AcknowledgePdu> for AnyPdu
impl From<AcknowledgePdu> for AnyPdu
Source§fn from(pdu: AcknowledgePdu) -> Self
fn from(pdu: AcknowledgePdu) -> Self
Source§impl From<AcknowledgeReliablePdu> for AnyPdu
impl From<AcknowledgeReliablePdu> for AnyPdu
Source§fn from(pdu: AcknowledgeReliablePdu) -> Self
fn from(pdu: AcknowledgeReliablePdu) -> Self
Source§impl From<ActionRequestPdu> for AnyPdu
impl From<ActionRequestPdu> for AnyPdu
Source§fn from(pdu: ActionRequestPdu) -> Self
fn from(pdu: ActionRequestPdu) -> Self
Source§impl From<ActionRequestReliablePdu> for AnyPdu
impl From<ActionRequestReliablePdu> for AnyPdu
Source§fn from(pdu: ActionRequestReliablePdu) -> Self
fn from(pdu: ActionRequestReliablePdu) -> Self
Source§impl From<ActionResponsePdu> for AnyPdu
impl From<ActionResponsePdu> for AnyPdu
Source§fn from(pdu: ActionResponsePdu) -> Self
fn from(pdu: ActionResponsePdu) -> Self
Source§impl From<ActionResponseReliablePdu> for AnyPdu
impl From<ActionResponseReliablePdu> for AnyPdu
Source§fn from(pdu: ActionResponseReliablePdu) -> Self
fn from(pdu: ActionResponseReliablePdu) -> Self
Source§impl From<AggregateStatePdu> for AnyPdu
impl From<AggregateStatePdu> for AnyPdu
Source§fn from(pdu: AggregateStatePdu) -> Self
fn from(pdu: AggregateStatePdu) -> Self
Source§impl From<AppearancePdu> for AnyPdu
impl From<AppearancePdu> for AnyPdu
Source§fn from(pdu: AppearancePdu) -> Self
fn from(pdu: AppearancePdu) -> Self
Source§impl From<ArealObjectStatePdu> for AnyPdu
impl From<ArealObjectStatePdu> for AnyPdu
Source§fn from(pdu: ArealObjectStatePdu) -> Self
fn from(pdu: ArealObjectStatePdu) -> Self
Source§impl From<ArticulatedPartsPdu> for AnyPdu
impl From<ArticulatedPartsPdu> for AnyPdu
Source§fn from(pdu: ArticulatedPartsPdu) -> Self
fn from(pdu: ArticulatedPartsPdu) -> Self
Source§impl From<AttributePdu> for AnyPdu
impl From<AttributePdu> for AnyPdu
Source§fn from(pdu: AttributePdu) -> Self
fn from(pdu: AttributePdu) -> Self
Source§impl From<CollisionElasticPdu> for AnyPdu
impl From<CollisionElasticPdu> for AnyPdu
Source§fn from(pdu: CollisionElasticPdu) -> Self
fn from(pdu: CollisionElasticPdu) -> Self
Source§impl From<CollisionPdu> for AnyPdu
impl From<CollisionPdu> for AnyPdu
Source§fn from(pdu: CollisionPdu) -> Self
fn from(pdu: CollisionPdu) -> Self
Source§impl From<CommentPdu> for AnyPdu
impl From<CommentPdu> for AnyPdu
Source§fn from(pdu: CommentPdu) -> Self
fn from(pdu: CommentPdu) -> Self
Source§impl From<CommentReliablePdu> for AnyPdu
impl From<CommentReliablePdu> for AnyPdu
Source§fn from(pdu: CommentReliablePdu) -> Self
fn from(pdu: CommentReliablePdu) -> Self
Source§impl From<CreateEntityPdu> for AnyPdu
impl From<CreateEntityPdu> for AnyPdu
Source§fn from(pdu: CreateEntityPdu) -> Self
fn from(pdu: CreateEntityPdu) -> Self
Source§impl From<CreateEntityReliablePdu> for AnyPdu
impl From<CreateEntityReliablePdu> for AnyPdu
Source§fn from(pdu: CreateEntityReliablePdu) -> Self
fn from(pdu: CreateEntityReliablePdu) -> Self
Source§impl From<DataQueryPdu> for AnyPdu
impl From<DataQueryPdu> for AnyPdu
Source§fn from(pdu: DataQueryPdu) -> Self
fn from(pdu: DataQueryPdu) -> Self
Source§impl From<DataQueryReliablePdu> for AnyPdu
impl From<DataQueryReliablePdu> for AnyPdu
Source§fn from(pdu: DataQueryReliablePdu) -> Self
fn from(pdu: DataQueryReliablePdu) -> Self
Source§impl From<DataReliablePdu> for AnyPdu
impl From<DataReliablePdu> for AnyPdu
Source§fn from(pdu: DataReliablePdu) -> Self
fn from(pdu: DataReliablePdu) -> Self
Source§impl From<DesignatorPdu> for AnyPdu
impl From<DesignatorPdu> for AnyPdu
Source§fn from(pdu: DesignatorPdu) -> Self
fn from(pdu: DesignatorPdu) -> Self
Source§impl From<DetonationPdu> for AnyPdu
impl From<DetonationPdu> for AnyPdu
Source§fn from(pdu: DetonationPdu) -> Self
fn from(pdu: DetonationPdu) -> Self
Source§impl From<DirectedEnergyFirePdu> for AnyPdu
impl From<DirectedEnergyFirePdu> for AnyPdu
Source§fn from(pdu: DirectedEnergyFirePdu) -> Self
fn from(pdu: DirectedEnergyFirePdu) -> Self
Source§impl From<ElectromagneticEmissionsPdu> for AnyPdu
impl From<ElectromagneticEmissionsPdu> for AnyPdu
Source§fn from(pdu: ElectromagneticEmissionsPdu) -> Self
fn from(pdu: ElectromagneticEmissionsPdu) -> Self
Source§impl From<EntityDamageStatusPdu> for AnyPdu
impl From<EntityDamageStatusPdu> for AnyPdu
Source§fn from(pdu: EntityDamageStatusPdu) -> Self
fn from(pdu: EntityDamageStatusPdu) -> Self
Source§impl From<EntityStatePdu> for AnyPdu
impl From<EntityStatePdu> for AnyPdu
Source§fn from(pdu: EntityStatePdu) -> Self
fn from(pdu: EntityStatePdu) -> Self
Source§impl From<EntityStateUpdatePdu> for AnyPdu
impl From<EntityStateUpdatePdu> for AnyPdu
Source§fn from(pdu: EntityStateUpdatePdu) -> Self
fn from(pdu: EntityStateUpdatePdu) -> Self
Source§impl From<EnvironmentalProcessPdu> for AnyPdu
impl From<EnvironmentalProcessPdu> for AnyPdu
Source§fn from(pdu: EnvironmentalProcessPdu) -> Self
fn from(pdu: EnvironmentalProcessPdu) -> Self
Source§impl From<EventReportPdu> for AnyPdu
impl From<EventReportPdu> for AnyPdu
Source§fn from(pdu: EventReportPdu) -> Self
fn from(pdu: EventReportPdu) -> Self
Source§impl From<EventReportReliablePdu> for AnyPdu
impl From<EventReportReliablePdu> for AnyPdu
Source§fn from(pdu: EventReportReliablePdu) -> Self
fn from(pdu: EventReportReliablePdu) -> Self
Source§impl From<GriddedDataPdu> for AnyPdu
impl From<GriddedDataPdu> for AnyPdu
Source§fn from(pdu: GriddedDataPdu) -> Self
fn from(pdu: GriddedDataPdu) -> Self
Source§impl From<InformationOperationsActionPdu> for AnyPdu
impl From<InformationOperationsActionPdu> for AnyPdu
Source§fn from(pdu: InformationOperationsActionPdu) -> Self
fn from(pdu: InformationOperationsActionPdu) -> Self
Source§impl From<InformationOperationsReportPdu> for AnyPdu
impl From<InformationOperationsReportPdu> for AnyPdu
Source§fn from(pdu: InformationOperationsReportPdu) -> Self
fn from(pdu: InformationOperationsReportPdu) -> Self
Source§impl From<IntercomControlPdu> for AnyPdu
impl From<IntercomControlPdu> for AnyPdu
Source§fn from(pdu: IntercomControlPdu) -> Self
fn from(pdu: IntercomControlPdu) -> Self
Source§impl From<IntercomSignalPdu> for AnyPdu
impl From<IntercomSignalPdu> for AnyPdu
Source§fn from(pdu: IntercomSignalPdu) -> Self
fn from(pdu: IntercomSignalPdu) -> Self
Source§impl From<IsGroupOfPdu> for AnyPdu
impl From<IsGroupOfPdu> for AnyPdu
Source§fn from(pdu: IsGroupOfPdu) -> Self
fn from(pdu: IsGroupOfPdu) -> Self
Source§impl From<IsPartOfPdu> for AnyPdu
impl From<IsPartOfPdu> for AnyPdu
Source§fn from(pdu: IsPartOfPdu) -> Self
fn from(pdu: IsPartOfPdu) -> Self
Source§impl From<LinearObjectStatePdu> for AnyPdu
impl From<LinearObjectStatePdu> for AnyPdu
Source§fn from(pdu: LinearObjectStatePdu) -> Self
fn from(pdu: LinearObjectStatePdu) -> Self
Source§impl From<LiveEntityDetonationPdu> for AnyPdu
impl From<LiveEntityDetonationPdu> for AnyPdu
Source§fn from(pdu: LiveEntityDetonationPdu) -> Self
fn from(pdu: LiveEntityDetonationPdu) -> Self
Source§impl From<LiveEntityFirePdu> for AnyPdu
impl From<LiveEntityFirePdu> for AnyPdu
Source§fn from(pdu: LiveEntityFirePdu) -> Self
fn from(pdu: LiveEntityFirePdu) -> Self
Source§impl From<MinefieldDataPdu> for AnyPdu
impl From<MinefieldDataPdu> for AnyPdu
Source§fn from(pdu: MinefieldDataPdu) -> Self
fn from(pdu: MinefieldDataPdu) -> Self
Source§impl From<MinefieldQueryPdu> for AnyPdu
impl From<MinefieldQueryPdu> for AnyPdu
Source§fn from(pdu: MinefieldQueryPdu) -> Self
fn from(pdu: MinefieldQueryPdu) -> Self
Source§impl From<MinefieldResponseNackPdu> for AnyPdu
impl From<MinefieldResponseNackPdu> for AnyPdu
Source§fn from(pdu: MinefieldResponseNackPdu) -> Self
fn from(pdu: MinefieldResponseNackPdu) -> Self
Source§impl From<MinefieldStatePdu> for AnyPdu
impl From<MinefieldStatePdu> for AnyPdu
Source§fn from(pdu: MinefieldStatePdu) -> Self
fn from(pdu: MinefieldStatePdu) -> Self
Source§impl From<PointObjectStatePdu> for AnyPdu
impl From<PointObjectStatePdu> for AnyPdu
Source§fn from(pdu: PointObjectStatePdu) -> Self
fn from(pdu: PointObjectStatePdu) -> Self
Source§impl From<ReceiverPdu> for AnyPdu
impl From<ReceiverPdu> for AnyPdu
Source§fn from(pdu: ReceiverPdu) -> Self
fn from(pdu: ReceiverPdu) -> Self
Source§impl From<RecordQueryReliablePdu> for AnyPdu
impl From<RecordQueryReliablePdu> for AnyPdu
Source§fn from(pdu: RecordQueryReliablePdu) -> Self
fn from(pdu: RecordQueryReliablePdu) -> Self
Source§impl From<RecordReliablePdu> for AnyPdu
impl From<RecordReliablePdu> for AnyPdu
Source§fn from(pdu: RecordReliablePdu) -> Self
fn from(pdu: RecordReliablePdu) -> Self
Source§impl From<RemoveEntityPdu> for AnyPdu
impl From<RemoveEntityPdu> for AnyPdu
Source§fn from(pdu: RemoveEntityPdu) -> Self
fn from(pdu: RemoveEntityPdu) -> Self
Source§impl From<RemoveEntityReliablePdu> for AnyPdu
impl From<RemoveEntityReliablePdu> for AnyPdu
Source§fn from(pdu: RemoveEntityReliablePdu) -> Self
fn from(pdu: RemoveEntityReliablePdu) -> Self
Source§impl From<RepairCompletePdu> for AnyPdu
impl From<RepairCompletePdu> for AnyPdu
Source§fn from(pdu: RepairCompletePdu) -> Self
fn from(pdu: RepairCompletePdu) -> Self
Source§impl From<RepairResponsePdu> for AnyPdu
impl From<RepairResponsePdu> for AnyPdu
Source§fn from(pdu: RepairResponsePdu) -> Self
fn from(pdu: RepairResponsePdu) -> Self
Source§impl From<ResupplyCancelPdu> for AnyPdu
impl From<ResupplyCancelPdu> for AnyPdu
Source§fn from(pdu: ResupplyCancelPdu) -> Self
fn from(pdu: ResupplyCancelPdu) -> Self
Source§impl From<ResupplyOfferPdu> for AnyPdu
impl From<ResupplyOfferPdu> for AnyPdu
Source§fn from(pdu: ResupplyOfferPdu) -> Self
fn from(pdu: ResupplyOfferPdu) -> Self
Source§impl From<ResupplyReceivedPdu> for AnyPdu
impl From<ResupplyReceivedPdu> for AnyPdu
Source§fn from(pdu: ResupplyReceivedPdu) -> Self
fn from(pdu: ResupplyReceivedPdu) -> Self
Source§impl From<ServiceRequestPdu> for AnyPdu
impl From<ServiceRequestPdu> for AnyPdu
Source§fn from(pdu: ServiceRequestPdu) -> Self
fn from(pdu: ServiceRequestPdu) -> Self
Source§impl From<SetDataPdu> for AnyPdu
impl From<SetDataPdu> for AnyPdu
Source§fn from(pdu: SetDataPdu) -> Self
fn from(pdu: SetDataPdu) -> Self
Source§impl From<SetDataReliablePdu> for AnyPdu
impl From<SetDataReliablePdu> for AnyPdu
Source§fn from(pdu: SetDataReliablePdu) -> Self
fn from(pdu: SetDataReliablePdu) -> Self
Source§impl From<SetRecordReliablePdu> for AnyPdu
impl From<SetRecordReliablePdu> for AnyPdu
Source§fn from(pdu: SetRecordReliablePdu) -> Self
fn from(pdu: SetRecordReliablePdu) -> Self
Source§impl From<StartResumePdu> for AnyPdu
impl From<StartResumePdu> for AnyPdu
Source§fn from(pdu: StartResumePdu) -> Self
fn from(pdu: StartResumePdu) -> Self
Source§impl From<StartResumeReliablePdu> for AnyPdu
impl From<StartResumeReliablePdu> for AnyPdu
Source§fn from(pdu: StartResumeReliablePdu) -> Self
fn from(pdu: StartResumeReliablePdu) -> Self
Source§impl From<StopFreezePdu> for AnyPdu
impl From<StopFreezePdu> for AnyPdu
Source§fn from(pdu: StopFreezePdu) -> Self
fn from(pdu: StopFreezePdu) -> Self
Source§impl From<StopFreezeReliablePdu> for AnyPdu
impl From<StopFreezeReliablePdu> for AnyPdu
Source§fn from(pdu: StopFreezeReliablePdu) -> Self
fn from(pdu: StopFreezeReliablePdu) -> Self
Source§impl From<SupplementalEmissionPdu> for AnyPdu
impl From<SupplementalEmissionPdu> for AnyPdu
Source§fn from(pdu: SupplementalEmissionPdu) -> Self
fn from(pdu: SupplementalEmissionPdu) -> Self
Source§impl From<TimeSpacePositionInformationPdu> for AnyPdu
impl From<TimeSpacePositionInformationPdu> for AnyPdu
Source§fn from(pdu: TimeSpacePositionInformationPdu) -> Self
fn from(pdu: TimeSpacePositionInformationPdu) -> Self
Source§impl From<TransferOwnershipPdu> for AnyPdu
impl From<TransferOwnershipPdu> for AnyPdu
Source§fn from(pdu: TransferOwnershipPdu) -> Self
fn from(pdu: TransferOwnershipPdu) -> Self
Source§impl From<TransmitterPdu> for AnyPdu
impl From<TransmitterPdu> for AnyPdu
Source§fn from(pdu: TransmitterPdu) -> Self
fn from(pdu: TransmitterPdu) -> Self
Source§impl From<UnderwaterAcousticPdu> for AnyPdu
impl From<UnderwaterAcousticPdu> for AnyPdu
Source§fn from(pdu: UnderwaterAcousticPdu) -> Self
fn from(pdu: UnderwaterAcousticPdu) -> Self
Auto Trait Implementations§
impl Forget for AnyPdu
impl Freeze for AnyPdu
impl Move for AnyPdu
impl RefUnwindSafe for AnyPdu
impl Send for AnyPdu
impl Sync for AnyPdu
impl Unpin for AnyPdu
impl UnsafeUnpin for AnyPdu
impl UnwindSafe for AnyPdu
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> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.