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), in bytes.
Functions§
- pad_
publisher_ gid - Zero-extend a backend’s narrower identity into a full-width publisher GID.