Trait libp2p_swarm::protocols_handler::OutboundUpgradeSend[][src]

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

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

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

Associated Types

type Output: Send + 'static[src]

Equivalent to OutboundUpgrade::Output.

type Error: Send + 'static[src]

Equivalent to OutboundUpgrade::Error.

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

Equivalent to OutboundUpgrade::Future.

Loading content...

Required methods

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

Loading content...

Implementors

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

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

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

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

impl<T, TInfo> OutboundUpgradeSend for T where
    T: OutboundUpgrade<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...