pub trait ToGlobalTopicName: Send {
// Required method
fn to_global_name(self) -> Result<GlobalTopicName, Error>;
}Expand description
This trait represents types that can be converted into a GlobalTopicName
This trait is in use within roslibrust because we have APIs that want to take either &str, String, GlobalTopicName, or &GlobalTopicName, but we don’t want to use TryFrom as the error types are not compatible, and would force additional boilerplate on users.