Struct libp2p::core::transport::Upgrade[][src]

pub struct Upgrade<T, U> { /* fields omitted */ }

An upgrade on an authenticated, non-multiplexed Transport.

See Transport::upgrade

Implementations

impl<T, U> Upgrade<T, U>[src]

pub fn new(inner: T, upgrade: U) -> Upgrade<T, U>[src]

Trait Implementations

impl<T, U> Clone for Upgrade<T, U> where
    T: Clone,
    U: Clone
[src]

impl<T, U> Copy for Upgrade<T, U> where
    T: Copy,
    U: Copy
[src]

impl<T, U> Debug for Upgrade<T, U> where
    T: Debug,
    U: Debug
[src]

impl<T, C, D, U, I, E> Transport for Upgrade<T, U> where
    C: AsyncRead + AsyncWrite + Unpin,
    E: Error + 'static,
    T: Transport<Output = (I, C)>,
    U: InboundUpgrade<Negotiated<C>, Output = D, Error = E> + OutboundUpgrade<Negotiated<C>, Output = D, Error = E> + Clone,
    <T as Transport>::Error: 'static, 
[src]

type Output = (I, D)

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

type Error = TransportUpgradeError<<T as Transport>::Error, E>

An error that occurred during connection setup.

type Listener = ListenerStream<<T as Transport>::Listener, U>

A stream of Outputs for inbound connections. Read more

type ListenerUpgrade = ListenerUpgradeFuture<<T as Transport>::ListenerUpgrade, U, I, C>

A pending Output for an inbound connection, obtained from the Listener stream. Read more

type Dial = DialUpgradeFuture<<T as Transport>::Dial, U, I, C>

A pending Output for an outbound connection, obtained from dialing. Read more

Auto Trait Implementations

impl<T, U> RefUnwindSafe for Upgrade<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

impl<T, U> Send for Upgrade<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for Upgrade<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Unpin for Upgrade<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> UnwindSafe for Upgrade<T, U> where
    T: UnwindSafe,
    U: 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> Same<T> for T[src]

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]