pub trait SensorProcessorAccess<R: FlightFloat> {
type Imu: SensorPacketProcessor<ImuPacket<R>>;
type Mag: SensorPacketProcessor<MagPacket>;
type Baro: SensorPacketProcessor<BaroPacket>;
type Pitot: SensorPacketProcessor<PitotPacket>;
type Range: SensorPacketProcessor<RangePacket>;
type Gnss: SensorPacketProcessor<GNSSPacket>;
type Battery: SensorPacketProcessor<BatteryPacket>;
type Rc: SensorPacketProcessor<RcPacket>;
type Attitude: SensorPacketProcessor<AttitudePacket>;
// Required methods
fn imu(&mut self) -> &mut Self::Imu;
fn mag(&mut self) -> &mut Self::Mag;
fn baro(&mut self) -> &mut Self::Baro;
fn pitot(&mut self) -> &mut Self::Pitot;
fn range(&mut self) -> &mut Self::Range;
fn gnss(&mut self) -> &mut Self::Gnss;
fn battery(&mut self) -> &mut Self::Battery;
fn rc(&mut self) -> &mut Self::Rc;
fn attitude(&mut self) -> &mut Self::Attitude;
}Required Associated Types§
type Imu: SensorPacketProcessor<ImuPacket<R>>
type Mag: SensorPacketProcessor<MagPacket>
type Baro: SensorPacketProcessor<BaroPacket>
type Pitot: SensorPacketProcessor<PitotPacket>
type Range: SensorPacketProcessor<RangePacket>
type Gnss: SensorPacketProcessor<GNSSPacket>
type Battery: SensorPacketProcessor<BatteryPacket>
type Rc: SensorPacketProcessor<RcPacket>
type Attitude: SensorPacketProcessor<AttitudePacket>
Required Methods§
fn imu(&mut self) -> &mut Self::Imu
fn mag(&mut self) -> &mut Self::Mag
fn baro(&mut self) -> &mut Self::Baro
fn pitot(&mut self) -> &mut Self::Pitot
fn range(&mut self) -> &mut Self::Range
fn gnss(&mut self) -> &mut Self::Gnss
fn battery(&mut self) -> &mut Self::Battery
fn rc(&mut self) -> &mut Self::Rc
fn attitude(&mut self) -> &mut Self::Attitude
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".