pub struct TunnelConfig {
pub major_socket_count: usize,
pub udp_tunnel_config: Option<UdpTunnelConfig>,
pub tcp_tunnel_config: Option<TcpTunnelConfig>,
}Fields§
§major_socket_count: usize§udp_tunnel_config: Option<UdpTunnelConfig>§tcp_tunnel_config: Option<TcpTunnelConfig>Implementations§
Source§impl TunnelConfig
impl TunnelConfig
pub fn new(tcp_init_codec: Box<dyn InitCodec>) -> TunnelConfig
Source§impl TunnelConfig
impl TunnelConfig
Source§impl TunnelConfig
impl TunnelConfig
pub fn empty() -> Self
pub fn set_tcp_multi_count(self, count: usize) -> Self
pub fn set_udp_tunnel_config(self, config: UdpTunnelConfig) -> Self
pub fn set_tcp_tunnel_config(self, config: TcpTunnelConfig) -> Self
pub fn check(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for TunnelConfig
impl Clone for TunnelConfig
Source§fn clone(&self) -> TunnelConfig
fn clone(&self) -> TunnelConfig
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 TunnelConfig
impl !RefUnwindSafe for TunnelConfig
impl Send for TunnelConfig
impl Sync for TunnelConfig
impl Unpin for TunnelConfig
impl !UnwindSafe for TunnelConfig
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