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§
Source§fn clone(&self) -> SharedMemoryConfig
fn clone(&self) -> SharedMemoryConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)