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: usizeSize, converted in bytes, of the entire shared memory buffer.
backoff: u64Duration, 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
source§fn eq(&self, other: &SharedMemoryConfiguration) -> bool
fn eq(&self, other: &SharedMemoryConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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<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.