Trait libp2p_swarm::protocols_handler::InboundUpgradeSend[][src]

pub trait InboundUpgradeSend: UpgradeInfoSend {
    type Output: Send + 'static;
    type Error: Send + 'static;
    type Future: Future<Output = Result<Self::Output, Self::Error>> + Send + 'static;
    fn upgrade_inbound(
        self,
        socket: NegotiatedSubstream,
        info: Self::Info
    ) -> Self::Future; }

Implemented automatically on all types that implement InboundUpgrade and Send + 'static.

Do not implement this trait yourself. Instead, please implement InboundUpgrade.

Associated Types

type Output: Send + 'static[src]

Equivalent to InboundUpgrade::Output.

type Error: Send + 'static[src]

Equivalent to InboundUpgrade::Error.

type Future: Future<Output = Result<Self::Output, Self::Error>> + Send + 'static[src]

Equivalent to InboundUpgrade::Future.

Loading content...

Required methods

fn upgrade_inbound(
    self,
    socket: NegotiatedSubstream,
    info: Self::Info
) -> Self::Future
[src]

Loading content...

Implementors

impl<K, H> InboundUpgradeSend for Upgrade<K, H> where
    H: InboundUpgradeSend,
    K: Send + 'static, 
[src]

type Output = (K, <H as InboundUpgradeSend>::Output)

type Error = (K, <H as InboundUpgradeSend>::Error)

type Future = BoxFuture<'static, Result<Self::Output, Self::Error>>

impl<T, TInfo> InboundUpgradeSend for T where
    T: InboundUpgrade<NegotiatedSubstream, Info = TInfo> + UpgradeInfoSend<Info = TInfo>,
    TInfo: ProtocolName + Clone + Send + 'static,
    T::Output: Send + 'static,
    T::Error: Send + 'static,
    T::Future: Send + 'static, 
[src]

type Output = T::Output

type Error = T::Error

type Future = T::Future

Loading content...