pub struct ServiceHandlerDecl {
pub service: String,
pub req_name: String,
pub req_type: Type,
pub ret_type: Type,
pub body: Block,
pub span: Span,
}Expand description
ROS 2 Service Server: on_service("rover/get_status") fn srv_handler(req: String) -> String { ... }
Fields§
§service: String§req_name: String§req_type: Type§ret_type: Type§body: Block§span: SpanTrait Implementations§
Source§impl Clone for ServiceHandlerDecl
impl Clone for ServiceHandlerDecl
Source§impl Debug for ServiceHandlerDecl
impl Debug for ServiceHandlerDecl
Source§impl<'de> Deserialize<'de> for ServiceHandlerDecl
impl<'de> Deserialize<'de> for ServiceHandlerDecl
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 ServiceHandlerDecl
impl PartialEq for ServiceHandlerDecl
Source§impl Serialize for ServiceHandlerDecl
impl Serialize for ServiceHandlerDecl
impl StructuralPartialEq for ServiceHandlerDecl
Auto Trait Implementations§
impl Freeze for ServiceHandlerDecl
impl RefUnwindSafe for ServiceHandlerDecl
impl Send for ServiceHandlerDecl
impl Sync for ServiceHandlerDecl
impl Unpin for ServiceHandlerDecl
impl UnsafeUnpin for ServiceHandlerDecl
impl UnwindSafe for ServiceHandlerDecl
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