pub enum Record {
Show 27 variants
OSD(OSD),
Home(Home),
Gimbal(Gimbal),
RC(RC),
Custom(Custom),
Deform(Deform),
CenterBattery(CenterBattery),
SmartBattery(SmartBattery),
AppTip(AppTip),
AppWarn(AppWarn),
RCGPS(RCGPS),
Recover(Recover),
AppGPS(AppGPS),
Firmware(Firmware),
MCParams(MCParams),
SmartBatteryGroup(SmartBatteryGroup),
AppSeriousWarn(AppSeriousWarn),
Camera(Camera),
VirtualStick(VirtualStick),
ComponentSerial(ComponentSerial),
OFDM(OFDM),
KeyStorageRecover(Vec<u8>),
KeyStorage(KeyStorage),
RCDisplayField(RCDisplayField),
JPEG(Vec<u8>),
Unknown(u8, Vec<u8>),
Invalid(Vec<u8>),
}Expand description
Represents the different types of records.
Each variant of this enum corresponds to a specific type of record in the log file.
Records typically consist of a ‘magic’ byte indicating the record type, followed by the length of the record,
the actual data, and then a terminating byte of value 0xff.
Variants§
OSD(OSD)
Home(Home)
Gimbal(Gimbal)
RC(RC)
Custom(Custom)
Deform(Deform)
CenterBattery(CenterBattery)
SmartBattery(SmartBattery)
AppTip(AppTip)
AppWarn(AppWarn)
RCGPS(RCGPS)
Recover(Recover)
AppGPS(AppGPS)
Firmware(Firmware)
MCParams(MCParams)
SmartBatteryGroup(SmartBatteryGroup)
AppSeriousWarn(AppSeriousWarn)
Camera(Camera)
VirtualStick(VirtualStick)
ComponentSerial(ComponentSerial)
OFDM(OFDM)
KeyStorageRecover(Vec<u8>)
KeyStorage(KeyStorage)
RCDisplayField(RCDisplayField)
JPEG(Vec<u8>)
Unknown(u8, Vec<u8>)
Invalid(Vec<u8>)
Trait Implementations§
Source§impl BinRead for Record
impl BinRead for Record
Source§type Args<'__binrw_generated_args_lifetime> = RecordBinReadArgs<'__binrw_generated_args_lifetime>
type Args<'__binrw_generated_args_lifetime> = RecordBinReadArgs<'__binrw_generated_args_lifetime>
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl ReadEndian for Record
impl ReadEndian for Record
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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