Struct tet_libp2p_core::transport::upgrade::Upgrade[][src]

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

A custom upgrade on an Authenticated transport.

See Transport::upgrade

Implementations

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

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

Trait Implementations

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

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

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

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

type Output = (PeerId, D)

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

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

An error that occurred during connection setup.

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

A stream of Outputs for inbound connections. Read more

type ListenerUpgrade = ListenerUpgradeFuture<T::ListenerUpgrade, U, C>

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

type Dial = DialUpgradeFuture<T::Dial, U, 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

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