Struct zenoh_config::LinkRxConf
source · pub struct LinkRxConf { /* private fields */ }
Implementations§
source§impl LinkRxConf
impl LinkRxConf
pub fn validate(&self) -> bool
pub fn new(buffer_size: usize, max_message_size: usize) -> Result<Self, Self>
sourcepub fn buffer_size(&self) -> &usize
pub fn buffer_size(&self) -> &usize
Receiving buffer size in bytes for each link The default the rx_buffer_size value is the same as the default batch size: 65335. For very high throughput scenarios, the rx_buffer_size can be increased to accomodate more in-flight data. This is particularly relevant when dealing with large messages. E.g. for 16MiB rx_buffer_size set the value to: 16777216.
sourcepub fn set_buffer_size(&mut self, value: usize) -> Result<usize, usize>
pub fn set_buffer_size(&mut self, value: usize) -> Result<usize, usize>
Receiving buffer size in bytes for each link The default the rx_buffer_size value is the same as the default batch size: 65335. For very high throughput scenarios, the rx_buffer_size can be increased to accomodate more in-flight data. This is particularly relevant when dealing with large messages. E.g. for 16MiB rx_buffer_size set the value to: 16777216.
sourcepub fn max_message_size(&self) -> &usize
pub fn max_message_size(&self) -> &usize
Maximum size of the defragmentation buffer at receiver end (default: 1GiB). Fragmented messages that are larger than the configured size will be dropped.
source§impl LinkRxConf
impl LinkRxConf
pub fn from_deserializer<'d, D: Deserializer<'d>>(
d: D
) -> Result<Self, Result<Self, D::Error>>where
Self: Deserialize<'d>,
Trait Implementations§
source§impl Clone for LinkRxConf
impl Clone for LinkRxConf
source§fn clone(&self) -> LinkRxConf
fn clone(&self) -> LinkRxConf
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more