Struct salvo::prelude::RustlsListener [−][src]
pub struct RustlsListener<C> { /* fields omitted */ }
Expand description
RustlsListener
Implementations
pub fn with_rustls_config(
config: RustlsConfig
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
pub fn with_rustls_config(
config: RustlsConfig
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
Create new RustlsListenerBuilder with RustlsConfig.
pub fn try_with_rustls_config(
config: RustlsConfig
) -> Result<RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>, Error>
pub fn try_with_rustls_config(
config: RustlsConfig
) -> Result<RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>, Error>
Try to create new RustlsListenerBuilder with RustlsConfig.
pub fn with_server_config(
config: impl Into<Arc<ServerConfig>>
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
pub fn with_server_config(
config: impl Into<Arc<ServerConfig>>
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
Create new RustlsListenerBuilder with ServerConfig.
Create new RustlsListener with config stream.
Trait Implementations
impl<C> Accept for RustlsListener<C> where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
impl<C> Accept for RustlsListener<C> where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
type Conn = RustlsStream
type Conn = RustlsStream
The connection type that can be accepted.
pub fn poll_accept(
self: Pin<&mut RustlsListener<C>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<RustlsListener<C> as Accept>::Conn, <RustlsListener<C> as Accept>::Error>>>
pub fn poll_accept(
self: Pin<&mut RustlsListener<C>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<RustlsListener<C> as Accept>::Conn, <RustlsListener<C> as Accept>::Error>>>
Poll to accept the next connection.
impl<C> Listener for RustlsListener<C> where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
impl<C> Listener for RustlsListener<C> where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
Join current Listener with the other.
Auto Trait Implementations
impl<C> !RefUnwindSafe for RustlsListener<C>
impl<C> Send for RustlsListener<C> where
C: Send,
impl<C> Sync for RustlsListener<C> where
C: Sync,
impl<C> !UnwindSafe for RustlsListener<C>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more