#[doc(hidden)]
extern crate alloc;
use alloc::sync::Arc;
use zenoh::Session;
use crate::traits::CommunicatorImplementationMethods;
#[derive(Debug)]
pub enum CommunicatorImplementation {
Zenoh(crate::zenoh::Communicator),
}
impl CommunicatorImplementationMethods for CommunicatorImplementation {}
impl CommunicatorImplementation {
#[must_use]
#[allow(clippy::match_wildcard_for_single_variants)]
pub fn session(&self) -> Arc<Session> {
match self {
Self::Zenoh(communicator) => communicator.session(),
}
}
}