pub struct RobotDecl {Show 16 fields
pub name: String,
pub pins: Vec<PinDecl>,
pub buses: Vec<BusDecl>,
pub fields: Vec<StructField>,
pub methods: Vec<FnDecl>,
pub tasks: Vec<TaskDecl>,
pub topic_handlers: Vec<TopicHandlerDecl>,
pub event_handlers: Vec<EventHandlerDecl>,
pub state_machines: Vec<StateMachineDecl>,
pub interrupt_handlers: Vec<InterruptHandlerDecl>,
pub service_handlers: Vec<ServiceHandlerDecl>,
pub action_handlers: Vec<ActionHandlerDecl>,
pub watchdogs: Vec<WatchdogDecl>,
pub sensor_pipelines: Vec<SensorPipelineDecl>,
pub safety_invariants: Vec<SafetyInvariantDecl>,
pub span: Span,
}Expand description
Robot encapsulation block
Fields§
§name: String§pins: Vec<PinDecl>§buses: Vec<BusDecl>§fields: Vec<StructField>§methods: Vec<FnDecl>§tasks: Vec<TaskDecl>§topic_handlers: Vec<TopicHandlerDecl>§event_handlers: Vec<EventHandlerDecl>§state_machines: Vec<StateMachineDecl>§interrupt_handlers: Vec<InterruptHandlerDecl>§service_handlers: Vec<ServiceHandlerDecl>§action_handlers: Vec<ActionHandlerDecl>§watchdogs: Vec<WatchdogDecl>§sensor_pipelines: Vec<SensorPipelineDecl>§safety_invariants: Vec<SafetyInvariantDecl>§span: SpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for RobotDecl
impl<'de> Deserialize<'de> for RobotDecl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RobotDecl
Auto Trait Implementations§
impl Freeze for RobotDecl
impl RefUnwindSafe for RobotDecl
impl Send for RobotDecl
impl Sync for RobotDecl
impl Unpin for RobotDecl
impl UnsafeUnpin for RobotDecl
impl UnwindSafe for RobotDecl
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