pub struct PendingConnectionHandler { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for PendingConnectionHandler
impl Clone for PendingConnectionHandler
Source§fn clone(&self) -> PendingConnectionHandler
fn clone(&self) -> PendingConnectionHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConnectionHandler for PendingConnectionHandler
impl ConnectionHandler for PendingConnectionHandler
type Action = Infallible
type Event = Infallible
fn handle_action(&mut self, _action: Self::Action)
fn poll( &mut self, _cx: &mut Context<'_>, ) -> Poll<ConnectionHandlerEvent<Self::Event>>
fn connection_keep_alive(&self) -> bool
fn poll_close(&mut self, _: &mut Context<'_>) -> Poll<Option<Self::Event>>
fn select<H>(self, other: H) -> ConnectionHandlerSelect<Self, H>where
H: ConnectionHandler,
Self: Sized,
fn map_event<O, F>(self, map: F) -> MapEvent<Self, F>
fn map_action<O, F>(self, map: F) -> MapAction<Self, O, F>
Source§impl Debug for PendingConnectionHandler
impl Debug for PendingConnectionHandler
Source§impl InboundStreamHandler for PendingConnectionHandler
impl InboundStreamHandler for PendingConnectionHandler
type InboundUpgrade = PendingUpgrade<String>
type InboundUserData = ()
fn listen_protocol( &self, ) -> SubstreamProtocol<Self::InboundUpgrade, Self::InboundUserData>
fn on_fully_negotiated( &mut self, _user_data: Self::InboundUserData, _protocol: <Self::InboundUpgrade as InboundUpgradeSend>::Output, )
fn on_upgrade_error( &mut self, _user_data: Self::InboundUserData, _error: <Self::InboundUpgrade as InboundUpgradeSend>::Error, )
Source§impl OutboundStreamHandler for PendingConnectionHandler
impl OutboundStreamHandler for PendingConnectionHandler
type OutboundUpgrade = PendingUpgrade<String>
type OutboundUserData = Infallible
fn on_fully_negotiated( &mut self, _user_data: Self::OutboundUserData, _protocol: <Self::OutboundUpgrade as InboundUpgradeSend>::Output, )
fn on_upgrade_error( &mut self, _user_data: Self::OutboundUserData, _error: StreamUpgradeError<<Self::OutboundUpgrade as InboundUpgradeSend>::Error>, )
fn poll_outbound_request( &mut self, _cx: &mut Context<'_>, ) -> Poll<SubstreamProtocol<Self::OutboundUpgrade, Self::OutboundUserData>>
Auto Trait Implementations§
impl Freeze for PendingConnectionHandler
impl RefUnwindSafe for PendingConnectionHandler
impl Send for PendingConnectionHandler
impl Sync for PendingConnectionHandler
impl Unpin for PendingConnectionHandler
impl UnsafeUnpin for PendingConnectionHandler
impl UnwindSafe for PendingConnectionHandler
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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