core_pb/driving/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod data;
pub mod motors;
pub mod network;
pub mod peripherals;

use crate::driving::motors::RobotMotorsBehavior;
use crate::driving::network::RobotNetworkBehavior;
use crate::driving::peripherals::RobotPeripheralsBehavior;
use crate::util::CrossPlatformInstant;

pub trait RobotBehavior: 'static {
    type Instant: CrossPlatformInstant + Default;

    type Motors: RobotMotorsBehavior;
    type Network: RobotNetworkBehavior;
    type Peripherals: RobotPeripheralsBehavior;
}