pub struct ServerConfig { /* private fields */ }Expand description
Configuration for a server endpoint.
Implementations§
Source§impl ServerConfig
impl ServerConfig
Sourcepub fn builder() -> ServerConfigBuilder
pub fn builder() -> ServerConfigBuilder
Starts building a server configuration.
Sourcepub fn rustls(&self) -> &Arc<ServerConfig> ⓘ
pub fn rustls(&self) -> &Arc<ServerConfig> ⓘ
Returns the Rustls configuration used by this endpoint.
Sourcepub fn transport(&self) -> &TransportConfig
pub fn transport(&self) -> &TransportConfig
Returns the transport configuration.
Sourcepub fn max_concurrent_connections(&self) -> Option<usize>
pub fn max_concurrent_connections(&self) -> Option<usize>
Returns the maximum allowed concurrent connections.
Sourcepub fn migration_enabled(&self) -> bool
pub fn migration_enabled(&self) -> bool
Returns whether active connection migration is enabled.
Sourcepub fn preferred_address(&self) -> Option<SocketAddr>
pub fn preferred_address(&self) -> Option<SocketAddr>
Returns the advertised preferred address, if any.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
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 !RefUnwindSafe for ServerConfig
impl !UnwindSafe for ServerConfig
impl Freeze for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
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