[−][src]Trait libp2p_core::upgrade::OutboundUpgradeExt
Extention trait for OutboundUpgrade
. Automatically implemented on all types that implement
OutboundUpgrade
.
Provided methods
fn map_outbound<F, T>(self, f: F) -> MapOutboundUpgrade<Self, F> where
Self: Sized,
F: FnOnce(Self::Output) -> T,
Self: Sized,
F: FnOnce(Self::Output) -> T,
Returns a new object that wraps around Self
and applies a closure to the Output
.
fn map_outbound_err<F, T>(self, f: F) -> MapOutboundUpgradeErr<Self, F> where
Self: Sized,
F: FnOnce(Self::Error) -> T,
Self: Sized,
F: FnOnce(Self::Error) -> T,
Returns a new object that wraps around Self
and applies a closure to the Error
.