[][src]Struct roa::tls::TlsIncoming

pub struct TlsIncoming<I> { /* fields omitted */ }
This is supported on feature="tls" only.

A stream of connections based on another stream. As an implementation of roa_core::Accept.

Methods

impl<I> TlsIncoming<I>[src]

pub fn new(incoming: I, config: ServerConfig) -> Self[src]

This is supported on feature="tls" only.

Construct from inner incoming.

impl TlsIncoming<TcpIncoming>[src]

pub fn bind(addr: impl ToSocketAddrs, config: ServerConfig) -> Result<Self>[src]

This is supported on feature="tls" and feature="tcp" only.

Bind a socket addr.

Trait Implementations

impl<I, IO> Accept for TlsIncoming<I> where
    IO: 'static + Send + Sync + Unpin + AsyncRead + AsyncWrite,
    I: Unpin + Accept<Conn = AddrStream<IO>>, 
[src]

type Conn = AddrStream<WrapTlsStream<IO>>

The connection type that can be accepted.

type Error = I::Error

The error type that can occur when accepting a connection.

impl<I> Deref for TlsIncoming<I>[src]

type Target = I

The resulting type after dereferencing.

impl<I> DerefMut for TlsIncoming<I>[src]

Auto Trait Implementations

impl<I> !RefUnwindSafe for TlsIncoming<I>

impl<I> Send for TlsIncoming<I> where
    I: Send

impl<I> Sync for TlsIncoming<I> where
    I: Sync

impl<I> Unpin for TlsIncoming<I> where
    I: Unpin

impl<I> !UnwindSafe for TlsIncoming<I>

Blanket Implementations

impl<T, A, P> Access<T> for P where
    A: Access<T>,
    P: Deref<Target = A>, 
[src]

type Guard = <A as Access<T>>::Guard

A guard object containing the value and keeping it alive. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, A> DynAccess<T> for A where
    A: Access<T>,
    <A as Access<T>>::Guard: 'static, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,