pub struct UdpTunnelConfig {
pub main_udp_count: usize,
pub sub_udp_count: usize,
pub model: Model,
pub default_interface: Option<LocalInterface>,
pub udp_ports: Vec<u16>,
pub use_v6: bool,
pub recycle_buf: Option<RecycleBuf>,
}Fields§
§main_udp_count: usize§sub_udp_count: usize§model: Model§default_interface: Option<LocalInterface>§udp_ports: Vec<u16>§use_v6: bool§recycle_buf: Option<RecycleBuf>Implementations§
Source§impl UdpTunnelConfig
impl UdpTunnelConfig
pub fn check(&self) -> Result<()>
pub fn set_main_udp_count(self, count: usize) -> Self
pub fn set_sub_udp_count(self, count: usize) -> Self
pub fn set_model(self, model: Model) -> Self
pub fn set_default_interface(self, default_interface: LocalInterface) -> Self
pub fn set_udp_ports(self, udp_ports: Vec<u16>) -> Self
pub fn set_simple_udp_port(self, udp_port: u16) -> Self
pub fn set_use_v6(self, use_v6: bool) -> Self
Trait Implementations§
Source§impl Clone for UdpTunnelConfig
impl Clone for UdpTunnelConfig
Source§fn clone(&self) -> UdpTunnelConfig
fn clone(&self) -> UdpTunnelConfig
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 UdpTunnelConfig
impl RefUnwindSafe for UdpTunnelConfig
impl Send for UdpTunnelConfig
impl Sync for UdpTunnelConfig
impl Unpin for UdpTunnelConfig
impl UnwindSafe for UdpTunnelConfig
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