Expand description
Message metadata for received messages
This module provides the MessageInfo type which contains metadata
about received messages, matching the rclrs pattern.
§Example
node.create_subscription("/topic", |msg: &Int32, info: &MessageInfo| {
println!("Received at {:?} from {:?}", info.source_timestamp(), info.publisher_gid());
});Structs§
- Message
Info - Metadata about a received message
- RawMessage
Info - Raw-subscription message info:
MessageInfometadata plus the sample’s wire-level attachment bytes, borrowed for the callback scope.
Constants§
- PUBLISHER_
GID_ SIZE - Size of the publisher Global Identifier (GID)