pub struct TopicDescriptionHandle { /* private fields */ }Expand description
Untyped TopicDescription handle returned from
DomainParticipant::lookup_topicdescription /
DomainParticipant::find_topic.
The spec API returns the abstract base class because the caller
generally does not yet know the type (e.g. after discovery). We pack
name + type name + participant into a cloneable handle; the caller
can read get_type_name() and then obtain a typed handle via
create_topic::<T>.
Trait Implementations§
Source§impl Clone for TopicDescriptionHandle
impl Clone for TopicDescriptionHandle
Source§fn clone(&self) -> TopicDescriptionHandle
fn clone(&self) -> TopicDescriptionHandle
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 moreSource§impl Debug for TopicDescriptionHandle
impl Debug for TopicDescriptionHandle
Source§impl TopicDescription for TopicDescriptionHandle
impl TopicDescription for TopicDescriptionHandle
Source§fn get_type_name(&self) -> &str
fn get_type_name(&self) -> &str
Type name (e.g.
"std_msgs::msg::String").
Spec §2.2.2.3.1 get_type_name.Source§fn get_participant(&self) -> &DomainParticipant
fn get_participant(&self) -> &DomainParticipant
Owning participant.
Spec §2.2.2.3.1
get_participant.Auto Trait Implementations§
impl !RefUnwindSafe for TopicDescriptionHandle
impl !UnwindSafe for TopicDescriptionHandle
impl Freeze for TopicDescriptionHandle
impl Send for TopicDescriptionHandle
impl Sync for TopicDescriptionHandle
impl Unpin for TopicDescriptionHandle
impl UnsafeUnpin for TopicDescriptionHandle
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