pub struct TcpPipeConfig {
pub route_idle_time: Duration,
pub tcp_multiplexing_limit: usize,
pub default_interface: Option<LocalInterface>,
pub tcp_port: u16,
pub use_v6: bool,
pub init_codec: Box<dyn InitCodec>,
pub recycle_buf: Option<RecycleBuf>,
}Fields§
§route_idle_time: Duration§tcp_multiplexing_limit: usize§default_interface: Option<LocalInterface>§tcp_port: u16§use_v6: bool§init_codec: Box<dyn InitCodec>§recycle_buf: Option<RecycleBuf>Implementations§
source§impl TcpPipeConfig
impl TcpPipeConfig
pub fn new(init_codec: Box<dyn InitCodec>) -> TcpPipeConfig
pub fn check(&self) -> Result<()>
pub fn set_tcp_multiplexing_limit(self, tcp_multiplexing_limit: usize) -> Self
pub fn set_route_idle_time(self, route_idle_time: Duration) -> Self
pub fn set_default_interface(self, default_interface: LocalInterface) -> Self
pub fn set_tcp_port(self, tcp_port: u16) -> Self
pub fn set_use_v6(self, use_v6: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcpPipeConfig
impl !RefUnwindSafe for TcpPipeConfig
impl Send for TcpPipeConfig
impl Sync for TcpPipeConfig
impl Unpin for TcpPipeConfig
impl !UnwindSafe for TcpPipeConfig
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