pub struct ForwardSessionConfig<T: ToSocketAddrs> {
pub local: T,
pub remoteMap: Vec<(String, String)>,
pub allow_nets: Vec<String>,
pub enable_tcp: bool,
pub enable_udp: bool,
pub conn_bufsize: usize,
pub max_connections: i64,
}Fields§
§local: T§remoteMap: Vec<(String, String)>§allow_nets: Vec<String>§enable_tcp: bool§enable_udp: bool§conn_bufsize: usize§max_connections: i64Trait Implementations§
Source§impl<T: Clone + ToSocketAddrs> Clone for ForwardSessionConfig<T>
impl<T: Clone + ToSocketAddrs> Clone for ForwardSessionConfig<T>
Source§fn clone(&self) -> ForwardSessionConfig<T>
fn clone(&self) -> ForwardSessionConfig<T>
Returns a duplicate 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<T> Freeze for ForwardSessionConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for ForwardSessionConfig<T>where
T: RefUnwindSafe,
impl<T> Send for ForwardSessionConfig<T>where
T: Send,
impl<T> Sync for ForwardSessionConfig<T>where
T: Sync,
impl<T> Unpin for ForwardSessionConfig<T>where
T: Unpin,
impl<T> UnwindSafe for ForwardSessionConfig<T>where
T: UnwindSafe,
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