pub struct Upgrade<K, H> { /* private fields */ }
Expand description
Inbound and outbound upgrade for all ConnectionHandler
s.
Trait Implementations§
source§impl<K, H> InboundUpgradeSend for Upgrade<K, H>where
H: InboundUpgradeSend,
K: Send + 'static,
impl<K, H> InboundUpgradeSend for Upgrade<K, H>where
H: InboundUpgradeSend,
K: Send + 'static,
§type Output = (K, <H as InboundUpgradeSend>::Output)
type Output = (K, <H as InboundUpgradeSend>::Output)
Equivalent to
InboundUpgrade::Output
.§type Error = (K, <H as InboundUpgradeSend>::Error)
type Error = (K, <H as InboundUpgradeSend>::Error)
Equivalent to
InboundUpgrade::Error
.§type Future = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as InboundUpgradeSend>::Output, <Upgrade<K, H> as InboundUpgradeSend>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as InboundUpgradeSend>::Output, <Upgrade<K, H> as InboundUpgradeSend>::Error>> + Send>>
Equivalent to
InboundUpgrade::Future
.source§fn upgrade_inbound(
self,
resource: Stream,
info: <Upgrade<K, H> as UpgradeInfoSend>::Info,
) -> <Upgrade<K, H> as InboundUpgradeSend>::Future
fn upgrade_inbound( self, resource: Stream, info: <Upgrade<K, H> as UpgradeInfoSend>::Info, ) -> <Upgrade<K, H> as InboundUpgradeSend>::Future
Equivalent to
InboundUpgrade::upgrade_inbound
.source§impl<K, H> OutboundUpgradeSend for Upgrade<K, H>where
H: OutboundUpgradeSend,
K: Send + 'static,
impl<K, H> OutboundUpgradeSend for Upgrade<K, H>where
H: OutboundUpgradeSend,
K: Send + 'static,
§type Output = (K, <H as OutboundUpgradeSend>::Output)
type Output = (K, <H as OutboundUpgradeSend>::Output)
Equivalent to
OutboundUpgrade::Output
.§type Error = (K, <H as OutboundUpgradeSend>::Error)
type Error = (K, <H as OutboundUpgradeSend>::Error)
Equivalent to
OutboundUpgrade::Error
.§type Future = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as OutboundUpgradeSend>::Output, <Upgrade<K, H> as OutboundUpgradeSend>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Upgrade<K, H> as OutboundUpgradeSend>::Output, <Upgrade<K, H> as OutboundUpgradeSend>::Error>> + Send>>
Equivalent to
OutboundUpgrade::Future
.source§fn upgrade_outbound(
self,
resource: Stream,
info: <Upgrade<K, H> as UpgradeInfoSend>::Info,
) -> <Upgrade<K, H> as OutboundUpgradeSend>::Future
fn upgrade_outbound( self, resource: Stream, info: <Upgrade<K, H> as UpgradeInfoSend>::Info, ) -> <Upgrade<K, H> as OutboundUpgradeSend>::Future
Equivalent to
OutboundUpgrade::upgrade_outbound
.source§impl<K, H> UpgradeInfoSend for Upgrade<K, H>where
H: UpgradeInfoSend,
K: Send + 'static,
impl<K, H> UpgradeInfoSend for Upgrade<K, H>where
H: UpgradeInfoSend,
K: Send + 'static,
§type Info = IndexedProtoName<<H as UpgradeInfoSend>::Info>
type Info = IndexedProtoName<<H as UpgradeInfoSend>::Info>
Equivalent to
UpgradeInfo::Info
.§type InfoIter = IntoIter<<Upgrade<K, H> as UpgradeInfoSend>::Info>
type InfoIter = IntoIter<<Upgrade<K, H> as UpgradeInfoSend>::Info>
Equivalent to
UpgradeInfo::InfoIter
.source§fn protocol_info(&self) -> <Upgrade<K, H> as UpgradeInfoSend>::InfoIter
fn protocol_info(&self) -> <Upgrade<K, H> as UpgradeInfoSend>::InfoIter
Equivalent to
UpgradeInfo::protocol_info
.Auto Trait Implementations§
impl<K, H> Freeze for Upgrade<K, H>
impl<K, H> RefUnwindSafe for Upgrade<K, H>where
K: RefUnwindSafe,
H: RefUnwindSafe,
impl<K, H> Send for Upgrade<K, H>
impl<K, H> Sync for Upgrade<K, H>
impl<K, H> Unpin for Upgrade<K, H>
impl<K, H> UnwindSafe for Upgrade<K, H>where
K: UnwindSafe,
H: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more