Struct ros2_client::node_entities_info::NodeEntitiesInfo
source · [−]pub struct NodeEntitiesInfo { /* private fields */ }
Expand description
Information about a node in ROS2 network
See NodeEntitiesInfo
Implementations
sourceimpl NodeEntitiesInfo
impl NodeEntitiesInfo
pub fn new(name: String, namespace: String) -> NodeEntitiesInfo
pub fn namespace(&self) -> &str
pub fn name(&self) -> &str
pub fn get_reader_gid(&self) -> Vec<Gid>
pub fn get_writer_gid(&self) -> Vec<Gid>
sourcepub fn get_full_name(&self) -> String
pub fn get_full_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
sourceimpl Clone for NodeEntitiesInfo
impl Clone for NodeEntitiesInfo
sourcefn clone(&self) -> NodeEntitiesInfo
fn clone(&self) -> NodeEntitiesInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NodeEntitiesInfo
impl Debug for NodeEntitiesInfo
sourceimpl<'de> Deserialize<'de> for NodeEntitiesInfo
impl<'de> Deserialize<'de> for NodeEntitiesInfo
sourcefn 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
sourceimpl Hash for NodeEntitiesInfo
impl Hash for NodeEntitiesInfo
sourceimpl PartialEq<NodeEntitiesInfo> for NodeEntitiesInfo
impl PartialEq<NodeEntitiesInfo> for NodeEntitiesInfo
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &NodeEntitiesInfo) -> bool
fn ne(&self, other: &NodeEntitiesInfo) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more