pub enum Packet {
Show 29 variants
LinkStatistics(LinkStatistics),
LinkStatisticsRx(LinkStatisticsRx),
LinkStatisticsTx(LinkStatisticsTx),
RCChannels(RcChannelsPacked),
Gps(Gps),
GpsTime(GpsTime),
GpsExtended(GpsExtended),
Vario(VariometerSensor),
Battery(Battery),
AirSpeed(AirSpeed),
BaroAltitude(BaroAltitude),
Rpm(Rpm),
Temp(Temp),
Voltages(Voltages),
VtxTelemetry(VtxTelemetry),
FlightMode(FlightMode),
Heartbeat(Heartbeat),
EspNow(EspNow),
MavlinkEnvelope(MavlinkEnvelope),
MavLinkFc(MavLinkFc),
MavLinkSensor(MavLinkSensor),
Remote(Remote),
Attitude(Attitude),
DeviceInformation(DeviceInformation),
DevicePing(DevicePing),
Game(Game),
NotImlemented(PacketType, usize),
Commands(DirectCommands),
Logging(Logging),
}Variants§
LinkStatistics(LinkStatistics)
LinkStatisticsRx(LinkStatisticsRx)
LinkStatisticsTx(LinkStatisticsTx)
RCChannels(RcChannelsPacked)
Gps(Gps)
GpsTime(GpsTime)
GpsExtended(GpsExtended)
Vario(VariometerSensor)
Battery(Battery)
AirSpeed(AirSpeed)
BaroAltitude(BaroAltitude)
Rpm(Rpm)
Temp(Temp)
Voltages(Voltages)
VtxTelemetry(VtxTelemetry)
FlightMode(FlightMode)
Heartbeat(Heartbeat)
EspNow(EspNow)
MavlinkEnvelope(MavlinkEnvelope)
MavLinkFc(MavLinkFc)
MavLinkSensor(MavLinkSensor)
Remote(Remote)
Attitude(Attitude)
DeviceInformation(DeviceInformation)
DevicePing(DevicePing)
Game(Game)
NotImlemented(PacketType, usize)
Commands(DirectCommands)
Logging(Logging)
Implementations§
Source§impl Packet
impl Packet
pub fn parse(raw_packet: &RawCrsfPacket<'_>) -> Result<Packet, CrsfParsingError>
Trait Implementations§
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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