pub struct RustlsServerConfig { /* private fields */ }Expand description
Shared rustls identity and exact per-session retained-memory policy.
Implementations§
Source§impl RustlsServerConfig
impl RustlsServerConfig
Sourcepub const fn new(
server: Arc<ServerConfig>,
limits: RustlsTransportLimits,
) -> Self
pub const fn new( server: Arc<ServerConfig>, limits: RustlsTransportLimits, ) -> Self
Creates a socket-free server-session configuration.
Sourcepub const fn server_config(&self) -> &Arc<ServerConfig> ⓘ
pub const fn server_config(&self) -> &Arc<ServerConfig> ⓘ
Returns the shared rustls server identity and protocol policy.
Sourcepub const fn limits(&self) -> RustlsTransportLimits
pub const fn limits(&self) -> RustlsTransportLimits
Returns the exact per-session transport bounds.
Trait Implementations§
Source§impl Clone for RustlsServerConfig
impl Clone for RustlsServerConfig
Auto Trait Implementations§
impl !RefUnwindSafe for RustlsServerConfig
impl !UnwindSafe for RustlsServerConfig
impl Freeze for RustlsServerConfig
impl Send for RustlsServerConfig
impl Sync for RustlsServerConfig
impl Unpin for RustlsServerConfig
impl UnsafeUnpin for RustlsServerConfig
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