Struct Upgrade
pub struct Upgrade<K, H> { /* private fields */ }
Expand description
Inbound and outbound upgrade for all ConnectionHandler
s.
Trait Implementations§
§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
.§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
.§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
.§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
.§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
.§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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