pub struct TcpServerConfig {
pub max_conn: usize,
pub bind: SocketAddr,
pub backlog: i32,
pub socket_opts: StreamSocketConfig,
pub shutdown: Option<Arc<AtomicBool>>,
pub cpu_id: Option<u16>,
}Fields§
§max_conn: usize§bind: SocketAddr§backlog: i32§socket_opts: StreamSocketConfig§shutdown: Option<Arc<AtomicBool>>§cpu_id: Option<u16>Trait Implementations§
Source§impl Clone for TcpServerConfig
impl Clone for TcpServerConfig
Source§fn clone(&self) -> TcpServerConfig
fn clone(&self) -> TcpServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TcpServerConfig
impl RefUnwindSafe for TcpServerConfig
impl Send for TcpServerConfig
impl Sync for TcpServerConfig
impl Unpin for TcpServerConfig
impl UnsafeUnpin for TcpServerConfig
impl UnwindSafe for TcpServerConfig
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