pub struct TcpInboundConfig {
pub max_wire_bytes: u32,
pub max_sessions: usize,
pub read_timeout: Option<Duration>,
pub write_timeout: Option<Duration>,
}Expand description
Configuration for spawn_tcp_inbound.
Fields§
§max_wire_bytes: u32§max_sessions: usizeConcurrent TCP session threads. 0 means no limit.
read_timeout: Option<Duration>Applied via TcpStream::set_read_timeout on each accepted session.
write_timeout: Option<Duration>Applied via TcpStream::set_write_timeout on each accepted session.
Trait Implementations§
Source§impl Clone for TcpInboundConfig
impl Clone for TcpInboundConfig
Source§impl Debug for TcpInboundConfig
impl Debug for TcpInboundConfig
Auto Trait Implementations§
impl Forget for TcpInboundConfig
impl Freeze for TcpInboundConfig
impl Move for TcpInboundConfig
impl RefUnwindSafe for TcpInboundConfig
impl Send for TcpInboundConfig
impl Sync for TcpInboundConfig
impl Unpin for TcpInboundConfig
impl UnsafeUnpin for TcpInboundConfig
impl UnwindSafe for TcpInboundConfig
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