oa_gateway_dds::provider

Trait DdsProvider

Source
pub trait DdsProvider: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn join(
        &self,
        domain_id: u16,
        qos_path: &Path,
    ) -> Result<Box<dyn DdsSession>, DdsError>;
}
Expand description

Joins a domain and returns a session.

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn join( &self, domain_id: u16, qos_path: &Path, ) -> Result<Box<dyn DdsSession>, DdsError>

§Errors

Returns DdsError if the QoS file cannot be used or the participant cannot join.

Implementors§