[−][src]Struct roa::tls::TlsIncoming
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]
IO: 'static + Send + Sync + Unpin + AsyncRead + AsyncWrite,
I: Unpin + Accept<Conn = AddrStream<IO>>,
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.
fn poll_accept(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<Result<Self::Conn, Self::Error>>>
[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<Result<Self::Conn, Self::Error>>>
impl<I> Deref for TlsIncoming<I>
[src]
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,
I: Send,
impl<I> Sync for TlsIncoming<I> where
I: Sync,
I: Sync,
impl<I> Unpin for TlsIncoming<I> where
I: Unpin,
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]
A: Access<T>,
P: Deref<Target = A>,
type Guard = <A as Access<T>>::Guard
A guard object containing the value and keeping it alive. Read more
fn load(&self) -> <P as Access<T>>::Guard
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, A> DynAccess<T> for A where
A: Access<T>,
<A as Access<T>>::Guard: 'static,
[src]
A: Access<T>,
<A as Access<T>>::Guard: 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,