pub struct SharedMemoryConfig {
pub buffer_size: usize,
pub read_timeout: Option<Duration>,
pub write_timeout: Option<Duration>,
pub max_retry_attempts: usize,
pub retry_policy: RetryPolicy,
pub auto_reconnect: bool,
}Expand description
Configuration for shared memory frame transport.
Fields§
§buffer_size: usize§read_timeout: Option<Duration>§write_timeout: Option<Duration>§max_retry_attempts: usize§retry_policy: RetryPolicy§auto_reconnect: boolImplementations§
pub fn new() -> Self
pub fn with_buffer_size(self, size: usize) -> Self
pub fn with_read_timeout(self, timeout: Duration) -> Self
pub fn with_write_timeout(self, timeout: Duration) -> Self
pub fn with_retry_policy(self, policy: RetryPolicy) -> Self
pub fn with_max_retries(self, max: usize) -> Self
pub fn with_auto_reconnect(self, enabled: bool) -> Self
Trait Implementations§
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