[][src]Struct libp2p_core::transport::upgrade::ListenerUpgradeFuture

pub struct ListenerUpgradeFuture<F, U, I, C> where
    C: AsyncRead + AsyncWrite,
    U: InboundUpgrade<C>, 
{ /* fields omitted */ }

The Transport::ListenerUpgrade future of an Upgraded transport.

Trait Implementations

impl<F, U, I, C, D> Future for ListenerUpgradeFuture<F, U, I, C> where
    F: Future<Item = (I, C)>,
    C: AsyncRead + AsyncWrite,
    U: InboundUpgrade<C, Output = D>,
    U::Error: Error
[src]

type Item = (I, D)

The type of value that this future will resolved with if it is successful. Read more

type Error = TransportUpgradeError<F::Error, U::Error>

The type of error that this future will resolve with if it fails in a normal fashion. Read more

Auto Trait Implementations

impl<F, U, I, C> Send for ListenerUpgradeFuture<F, U, I, C> where
    C: Send,
    F: Send,
    I: Send,
    U: Send,
    <U as InboundUpgrade<C>>::Future: Send,
    <U as UpgradeInfo>::Info: Send

impl<F, U, I, C> Sync for ListenerUpgradeFuture<F, U, I, C> where
    C: Sync,
    F: Sync,
    I: Sync,
    U: Sync,
    <U as InboundUpgrade<C>>::Future: Sync,
    <U as UpgradeInfo>::Info: Sync

impl<F, U, I, C> Unpin for ListenerUpgradeFuture<F, U, I, C> where
    C: Unpin,
    F: Unpin,
    I: Unpin,
    U: Unpin,
    <U as InboundUpgrade<C>>::Future: Unpin,
    <U as UpgradeInfo>::Info: Unpin

impl<F, U, I, C> UnwindSafe for ListenerUpgradeFuture<F, U, I, C> where
    C: UnwindSafe,
    F: UnwindSafe,
    I: UnwindSafe,
    U: UnwindSafe,
    <U as InboundUpgrade<C>>::Future: UnwindSafe,
    <U as UpgradeInfo>::Info: RefUnwindSafe + UnwindSafe

impl<F, U, I, C> RefUnwindSafe for ListenerUpgradeFuture<F, U, I, C> where
    C: RefUnwindSafe,
    F: RefUnwindSafe,
    I: RefUnwindSafe,
    U: RefUnwindSafe,
    <U as InboundUpgrade<C>>::Future: RefUnwindSafe,
    <U as UpgradeInfo>::Info: RefUnwindSafe

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<F> IntoFuture for F where
    F: Future
[src]

type Future = F

The future that this type can be converted into.

type Item = <F as Future>::Item

The item that the future may resolve with.

type Error = <F as Future>::Error

The error that the future may resolve with.

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