pub struct SharedMemoryConfiguration {
pub size: usize,
pub backoff: u64,
}
Expand description
Structure to configure how Zenoh-Flow uses the shared memory feature provided by Zenoh.
This configuration is applied on a link basis
A Zenoh-Flow runtime can be configured to always attempt to send data through shared-memory first. When this feature is enabled this structure allows tweaking two aspects: (i) the size of the shared memory buffer Zenoh should allocate and (ii) the back-off period.
Fields§
§size: usize
Size, converted in bytes, of the entire shared memory buffer.
backoff: u64
Duration, converted in nanoseconds, to wait before retrying the last operation.
Trait Implementations§
Source§fn clone(&self) -> SharedMemoryConfiguration
fn clone(&self) -> SharedMemoryConfiguration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.