pub struct GraphEndpointInfo<'a> {
pub node_name: &'a str,
pub node_namespace: &'a str,
pub topic_type: &'a str,
pub is_publisher: bool,
pub endpoint_gid: [u8; 24],
}Expand description
One discovered endpoint on a topic — phase-381 W3, the Rust view of
rmw_topic_endpoint_info_t.
Every string BORROWS from the backend’s own state for the duration of the visit. A caller that needs one afterwards copies it; that is what lets the graph stream without an allocator.
Fields§
§node_name: &'a strNode that owns the endpoint.
node_namespace: &'a strThat node’s namespace.
topic_type: &'a strFully-qualified type on the wire, e.g. "std_msgs/msg/Int32".
is_publisher: booltrue for a publisher, false for a subscription.
endpoint_gid: [u8; 24]The endpoint’s 24-byte identity; all-zero when the backend has none.
Trait Implementations§
Source§impl<'a> Clone for GraphEndpointInfo<'a>
impl<'a> Clone for GraphEndpointInfo<'a>
Source§fn clone(&self) -> GraphEndpointInfo<'a>
fn clone(&self) -> GraphEndpointInfo<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for GraphEndpointInfo<'a>
impl<'a> RefUnwindSafe for GraphEndpointInfo<'a>
impl<'a> Send for GraphEndpointInfo<'a>
impl<'a> Sync for GraphEndpointInfo<'a>
impl<'a> Unpin for GraphEndpointInfo<'a>
impl<'a> UnsafeUnpin for GraphEndpointInfo<'a>
impl<'a> UnwindSafe for GraphEndpointInfo<'a>
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