Struct rustdds::dds::DiscoveredTopicData
source · [−]pub struct DiscoveredTopicData {
pub updated_time: u64,
pub topic_data: TopicBuiltinTopicData,
}
Expand description
DDS Spec defined DiscoveredTopicData with extra updated time attribute. Practically this is gotten from DomainParticipant during runtime Type specified in RTPS v2.3 spec Figure 8.30
Fields
updated_time: u64
topic_data: TopicBuiltinTopicData
Implementations
sourceimpl DiscoveredTopicData
impl DiscoveredTopicData
pub fn new(topic_data: TopicBuiltinTopicData) -> DiscoveredTopicData
pub fn topic_name(&self) -> &String
pub fn type_name(&self) -> &String
Trait Implementations
sourceimpl Clone for DiscoveredTopicData
impl Clone for DiscoveredTopicData
sourcefn clone(&self) -> DiscoveredTopicData
fn clone(&self) -> DiscoveredTopicData
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 DiscoveredTopicData
impl Debug for DiscoveredTopicData
sourceimpl<'de> Deserialize<'de> for DiscoveredTopicData
impl<'de> Deserialize<'de> for DiscoveredTopicData
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 PartialEq<DiscoveredTopicData> for DiscoveredTopicData
impl PartialEq<DiscoveredTopicData> for DiscoveredTopicData
sourcefn eq(&self, other: &DiscoveredTopicData) -> bool
fn eq(&self, other: &DiscoveredTopicData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DiscoveredTopicData) -> bool
fn ne(&self, other: &DiscoveredTopicData) -> bool
This method tests for !=
.
sourceimpl Serialize for DiscoveredTopicData
impl Serialize for DiscoveredTopicData
impl StructuralPartialEq for DiscoveredTopicData
Auto Trait Implementations
impl RefUnwindSafe for DiscoveredTopicData
impl Send for DiscoveredTopicData
impl Sync for DiscoveredTopicData
impl Unpin for DiscoveredTopicData
impl UnwindSafe for DiscoveredTopicData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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