pub struct Config3 {
pub connection_count_max: u32,
pub send_buffer_bytes_max: u32,
pub recv_buffer_bytes_max: u32,
pub incoming_message_bytes_max: u32,
pub message_size_max: u32,
pub internal_event_channel_size: u32,
pub timeout: Duration,
pub backoff_start: Duration,
pub backoff_max: Duration,
pub preflight: Option<(PreflightSendCb, PreflightCheckCb)>,
}Expand description
Tx5 endpoint version 3 configuration.
Fields§
§connection_count_max: u32Maximum count of open connections. Default 4096.
send_buffer_bytes_max: u32Max backend send buffer bytes (per connection). Default 64 KiB.
recv_buffer_bytes_max: u32Max backend recv buffer bytes (per connection). Default 64 KiB.
incoming_message_bytes_max: u32Maximum receive message reconstruction bytes in memory (accross entire endpoint). Default 512 MiB.
message_size_max: u32Maximum size of an individual message. Default 16 MiB.
internal_event_channel_size: u32Internal event channel size. Default is 1024.
timeout: DurationDefault timeout for network operations. Default 60 seconds.
backoff_start: DurationStarting backoff duration for retries. Default 5 seconds.
backoff_max: DurationMax backoff duration for retries. Default 60 seconds.
preflight: Option<(PreflightSendCb, PreflightCheckCb)>If the protocol should manage a preflight message, set the callbacks here, otherwise no preflight will be sent nor validated. Default: None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config3
impl !RefUnwindSafe for Config3
impl Send for Config3
impl Sync for Config3
impl Unpin for Config3
impl !UnwindSafe for Config3
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