pub struct TcpOutboundConfig {
pub queue_capacity: usize,
pub max_wire_bytes: u32,
pub bridge_poll: Duration,
pub connect_timeout: Duration,
pub read_timeout: Option<Duration>,
pub write_timeout: Option<Duration>,
}Expand description
Configuration for spawn_tcp_outbound.
Fields§
§queue_capacity: usizeBounded queue between bridge drain and the TCP writer (backpressure).
max_wire_bytes: u32§bridge_poll: DurationHow long DistributionBridge::recv_timeout waits when the queue is empty.
connect_timeout: Duration§read_timeout: Option<Duration>Applied via TcpStream::set_read_timeout after connect.
write_timeout: Option<Duration>Applied via TcpStream::set_write_timeout after connect.
Trait Implementations§
Source§impl Clone for TcpOutboundConfig
impl Clone for TcpOutboundConfig
Source§impl Debug for TcpOutboundConfig
impl Debug for TcpOutboundConfig
Auto Trait Implementations§
impl Forget for TcpOutboundConfig
impl Freeze for TcpOutboundConfig
impl Move for TcpOutboundConfig
impl RefUnwindSafe for TcpOutboundConfig
impl Send for TcpOutboundConfig
impl Sync for TcpOutboundConfig
impl Unpin for TcpOutboundConfig
impl UnsafeUnpin for TcpOutboundConfig
impl UnwindSafe for TcpOutboundConfig
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