Skip to main content

rustdds/dds/
typedesc.rs

1/// Description of the type of a [Topic](../struct.Topic.html)
2#[derive(Clone, PartialEq, Eq, Debug)]
3pub struct TypeDesc {
4  my_name: String, // this is a rather minimal implementation
5} // placeholders
6
7impl TypeDesc {
8  pub fn new(my_name: String) -> Self {
9    Self { my_name }
10  }
11  pub fn name(&self) -> &str {
12    &self.my_name
13  }
14}