[][src]Struct libp2prs_core::transport::upgrade::ListenerUpgrade

pub struct ListenerUpgrade<TOutput, TMux, TSec> where
    TOutput: ConnectionInfo + ReadEx + WriteEx + Unpin + 'static,
    TSec: Upgrader<TOutput> + Send + Clone + 'static,
    TSec::Output: SecureInfo + ReadEx + WriteEx + Unpin,
    TMux: Upgrader<TSec::Output> + 'static,
    TMux::Output: StreamMuxerEx + 'static, 
{ /* fields omitted */ }

Implementations

impl<TOutput, TMux, TSec> ListenerUpgrade<TOutput, TMux, TSec> where
    TOutput: ConnectionInfo + ReadEx + WriteEx + Unpin + 'static,
    TSec: Upgrader<TOutput> + Send + Clone + 'static,
    TSec::Output: SecureInfo + ReadEx + WriteEx + Unpin,
    TMux: Upgrader<TSec::Output> + 'static,
    TMux::Output: StreamMuxerEx + 'static, 
[src]

pub fn limit(&self) -> Option<NonZeroUsize>[src]

pub fn set_limit(&mut self, limit: Option<NonZeroUsize>)[src]

Trait Implementations

impl<TOutput, TMux, TSec> TransportListener for ListenerUpgrade<TOutput, TMux, TSec> where
    TOutput: ConnectionInfo + ReadEx + WriteEx + Unpin + 'static,
    TSec: Upgrader<TOutput> + Send + Clone + 'static,
    TSec::Output: SecureInfo + ReadEx + WriteEx + Unpin,
    TMux: Upgrader<TSec::Output> + 'static,
    TMux::Output: StreamMuxerEx + 'static, 
[src]

type Output = IStreamMuxer

The result of a connection setup process, including protocol upgrades. Read more

Auto Trait Implementations

impl<TOutput, TMux, TSec> !RefUnwindSafe for ListenerUpgrade<TOutput, TMux, TSec>[src]

impl<TOutput, TMux, TSec> Send for ListenerUpgrade<TOutput, TMux, TSec>[src]

impl<TOutput, TMux, TSec> !Sync for ListenerUpgrade<TOutput, TMux, TSec>[src]

impl<TOutput, TMux, TSec> Unpin for ListenerUpgrade<TOutput, TMux, TSec> where
    TMux: Unpin,
    TSec: Unpin
[src]

impl<TOutput, TMux, TSec> !UnwindSafe for ListenerUpgrade<TOutput, TMux, TSec>[src]

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> 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>,