Struct ros2_client::entities_info::NodeEntitiesInfo
source · pub struct NodeEntitiesInfo { /* private fields */ }
Expand description
Information about a node in ROS2 network
See NodeEntitiesInfo
Defines a ROS 2 Node and how it is mapped to DDS entities.
Consists of name and namespace definitions, and lists of Reader and Writer ids that belong to this Node.
Implementations§
source§impl NodeEntitiesInfo
impl NodeEntitiesInfo
pub fn new(name: NodeName) -> NodeEntitiesInfo
pub fn namespace(&self) -> &str
pub fn name(&self) -> &str
sourcepub fn fully_qualified_name(&self) -> String
pub fn fully_qualified_name(&self) -> String
Full name of the node namespace + name eg. /some_node
pub fn add_writer(&mut self, gid: Gid)
pub fn add_reader(&mut self, gid: Gid)
Trait Implementations§
source§impl Clone for NodeEntitiesInfo
impl Clone for NodeEntitiesInfo
source§fn clone(&self) -> NodeEntitiesInfo
fn clone(&self) -> NodeEntitiesInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NodeEntitiesInfo
impl Debug for NodeEntitiesInfo
source§impl<'de> Deserialize<'de> for NodeEntitiesInfo
impl<'de> Deserialize<'de> for NodeEntitiesInfo
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 Hash for NodeEntitiesInfo
impl Hash for NodeEntitiesInfo
source§impl PartialEq for NodeEntitiesInfo
impl PartialEq for NodeEntitiesInfo
source§fn eq(&self, other: &NodeEntitiesInfo) -> bool
fn eq(&self, other: &NodeEntitiesInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NodeEntitiesInfo
impl Serialize for NodeEntitiesInfo
impl Eq for NodeEntitiesInfo
impl StructuralEq for NodeEntitiesInfo
impl StructuralPartialEq for NodeEntitiesInfo
Auto Trait Implementations§
impl RefUnwindSafe for NodeEntitiesInfo
impl Send for NodeEntitiesInfo
impl Sync for NodeEntitiesInfo
impl Unpin for NodeEntitiesInfo
impl UnwindSafe for NodeEntitiesInfo
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