pub struct TlsServerEndpoint<E, T> { /* private fields */ }Expand description
Compose binding with a configured TLS server provider. Binding wraps listeners; each accepted connection performs its own handshake. Wrap a composite endpoint here to support multiple listening addresses.
Implementations§
Source§impl<E, T> TlsServerEndpoint<E, T>
impl<E, T> TlsServerEndpoint<E, T>
Trait Implementations§
Source§impl<S, E, T> BindEndpoint<S> for TlsServerEndpoint<E, T>
impl<S, E, T> BindEndpoint<S> for TlsServerEndpoint<E, T>
Source§type Listener = TlsListener<<E as BindEndpoint<S>>::Listener, T>
type Listener = TlsListener<<E as BindEndpoint<S>>::Listener, T>
One bound listener, owned by the caller on success. Its representation belongs to the endpoint implementation.
Source§async fn bind(
&self,
scheduler: &S,
options: BindOptions,
cancellation: &Cancellation,
) -> OperationResult<Vec<Self::Listener>>
async fn bind( &self, scheduler: &S, options: BindOptions, cancellation: &Cancellation, ) -> OperationResult<Vec<Self::Listener>>
Bind and start listening on every address. Success returns a nonempty collection; failure transfers no listeners to the caller. Futures are lazy. Await completion after cooperative cancellation to finish asynchronous rollback; dropping a pending future provides ordinary destruction only.
Auto Trait Implementations§
impl<E, T> Freeze for TlsServerEndpoint<E, T>
impl<E, T> RefUnwindSafe for TlsServerEndpoint<E, T>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<E, T> Send for TlsServerEndpoint<E, T>
impl<E, T> Sync for TlsServerEndpoint<E, T>
impl<E, T> Unpin for TlsServerEndpoint<E, T>
impl<E, T> UnsafeUnpin for TlsServerEndpoint<E, T>where
E: UnsafeUnpin,
T: UnsafeUnpin,
impl<E, T> UnwindSafe for TlsServerEndpoint<E, T>where
E: UnwindSafe,
T: UnwindSafe,
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