|
|
|
@@ -13,7 +13,7 @@ |
|
|
|
//! based on shared memory. It is very fast, but it only supports local communication. To use |
|
|
|
//! iceoryx, use the [`IceoryxCommunicationLayer`][iceoryx::IceoryxCommunicationLayer] struct. |
|
|
|
|
|
|
|
use std::{borrow::Cow, fmt::Debug}; |
|
|
|
use std::borrow::Cow; |
|
|
|
|
|
|
|
#[cfg(all(unix, feature = "iceoryx"))] |
|
|
|
pub mod iceoryx; |
|
|
|
@@ -85,6 +85,8 @@ pub trait Subscriber: Send + Sync { |
|
|
|
fn recv(&mut self) -> Result<Option<Box<dyn ReceivedSample>>, BoxError>; |
|
|
|
} |
|
|
|
|
|
|
|
/// A message received from the communication layer. |
|
|
|
pub trait ReceivedSample: Send + Sync { |
|
|
|
/// Access the message's data. |
|
|
|
fn get(&self) -> Cow<[u8]>; |
|
|
|
} |