pub struct TcpTunnelConfig {
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 TcpTunnelConfig
impl TcpTunnelConfig
pub fn new(init_codec: Box<dyn InitCodec>) -> TcpTunnelConfig
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§
Source§impl Clone for TcpTunnelConfig
impl Clone for TcpTunnelConfig
Source§fn clone(&self) -> TcpTunnelConfig
fn clone(&self) -> TcpTunnelConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TcpTunnelConfig
impl !RefUnwindSafe for TcpTunnelConfig
impl Send for TcpTunnelConfig
impl Sync for TcpTunnelConfig
impl Unpin for TcpTunnelConfig
impl !UnwindSafe for TcpTunnelConfig
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