pub struct TopicHandlerDecl {
pub topic: String,
pub param_name: String,
pub param_type: Type,
pub body: Block,
pub span: Span,
}Expand description
ROS2 topic subscription handler: on_topic("rover/cmd_vel") fn on_velocity(msg: String) { ... }
Fields§
§topic: String§param_name: String§param_type: Type§body: Block§span: SpanTrait Implementations§
Source§impl Clone for TopicHandlerDecl
impl Clone for TopicHandlerDecl
Source§impl Debug for TopicHandlerDecl
impl Debug for TopicHandlerDecl
Source§impl<'de> Deserialize<'de> for TopicHandlerDecl
impl<'de> Deserialize<'de> for TopicHandlerDecl
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
Source§impl PartialEq for TopicHandlerDecl
impl PartialEq for TopicHandlerDecl
Source§impl Serialize for TopicHandlerDecl
impl Serialize for TopicHandlerDecl
impl StructuralPartialEq for TopicHandlerDecl
Auto Trait Implementations§
impl Freeze for TopicHandlerDecl
impl RefUnwindSafe for TopicHandlerDecl
impl Send for TopicHandlerDecl
impl Sync for TopicHandlerDecl
impl Unpin for TopicHandlerDecl
impl UnsafeUnpin for TopicHandlerDecl
impl UnwindSafe for TopicHandlerDecl
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