Struct salvo::prelude::NativeTlsListener
source · [−]pub struct NativeTlsListener<C> { /* private fields */ }
Expand description
NativeTlsListener
Implementations
sourceimpl NativeTlsListener<Once<Ready<Identity>>>
impl NativeTlsListener<Once<Ready<Identity>>>
sourcepub fn with_config(
config: NativeTlsConfig
) -> NativeTlsListenerBuilder<Once<Ready<Identity>>>
pub fn with_config(
config: NativeTlsConfig
) -> NativeTlsListenerBuilder<Once<Ready<Identity>>>
Create new NativeTlsListenerBuilder with NativeTlsConfig.
sourcepub fn try_with_config(
config: NativeTlsConfig
) -> Result<NativeTlsListenerBuilder<Once<Ready<Identity>>>, Error>
pub fn try_with_config(
config: NativeTlsConfig
) -> Result<NativeTlsListenerBuilder<Once<Ready<Identity>>>, Error>
Try to create new NativeTlsListenerBuilder with NativeTlsConfig.
sourceimpl<C> NativeTlsListener<C>
impl<C> NativeTlsListener<C>
sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
Get the local address bound to this listener.
sourceimpl<C> NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
impl<C> NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
sourcepub fn with_config_stream(config_stream: C) -> NativeTlsListenerBuilder<C>
pub fn with_config_stream(config_stream: C) -> NativeTlsListenerBuilder<C>
Create new NativeTlsListener with config stream.
Trait Implementations
sourceimpl<C> Accept for NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
impl<C> Accept for NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
type Conn = NativeTlsStream
type Conn = NativeTlsStream
The connection type that can be accepted.
sourcefn poll_accept(
self: Pin<&mut NativeTlsListener<C>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<NativeTlsListener<C> as Accept>::Conn, <NativeTlsListener<C> as Accept>::Error>>>
fn poll_accept(
self: Pin<&mut NativeTlsListener<C>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<NativeTlsListener<C> as Accept>::Conn, <NativeTlsListener<C> as Accept>::Error>>>
Poll to accept the next connection.
sourceimpl<C> Listener for NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
impl<C> Listener for NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
sourcefn join<T>(self, other: T) -> JoinedListener<Self, T>
fn join<T>(self, other: T) -> JoinedListener<Self, T>
Join current Listener with the other.
impl<'__pin, C> Unpin for NativeTlsListener<C>where
__Origin<'__pin, C>: Unpin,
Auto Trait Implementations
impl<C> !RefUnwindSafe for NativeTlsListener<C>
impl<C> Send for NativeTlsListener<C>where
C: Send,
impl<C> Sync for NativeTlsListener<C>where
C: Sync,
impl<C> !UnwindSafe for NativeTlsListener<C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more