[][src]Struct samotop_core::service::tcp::tls::TlsEnabled

pub struct TlsEnabled<T, P> { /* fields omitted */ }

Dummy TCP service for testing samotop server

Implementations

impl<T> TlsEnabled<T, TlsDisabled>[src]

pub fn disabled(wrapped: T) -> Self[src]

impl<T, P> TlsEnabled<T, P>[src]

pub fn yes(wrapped: T, provider: P) -> Self[src]

pub fn no(wrapped: T) -> Self[src]

pub fn new(wrapped: T, provider: Option<P>) -> Self[src]

Trait Implementations

impl<T: Clone, P: Clone> Clone for TlsEnabled<T, P>[src]

impl<T, IO, P> TcpService<IO> for TlsEnabled<T, P> where
    T: TcpService<TlsCapable<IO, P>>,
    IO: Read + Write + Unpin,
    P: TlsProvider<IO>, 
[src]

type Future = T::Future

Auto Trait Implementations

impl<T, P> RefUnwindSafe for TlsEnabled<T, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, P> Send for TlsEnabled<T, P> where
    P: Send,
    T: Send

impl<T, P> Sync for TlsEnabled<T, P> where
    P: Sync,
    T: Sync

impl<T, P> Unpin for TlsEnabled<T, P> where
    P: Unpin,
    T: Unpin

impl<T, P> UnwindSafe for TlsEnabled<T, P> where
    P: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.