pub struct MapEvent<THandler, TMap> { /* private fields */ }Trait Implementations§
Source§impl<THandler, O, TMap> ConnectionHandler for MapEvent<THandler, TMap>
impl<THandler, O, TMap> ConnectionHandler for MapEvent<THandler, TMap>
type Action = <THandler as ConnectionHandler>::Action
type Event = O
fn handle_action(&mut self, action: Self::Action)
fn connection_keep_alive(&self) -> bool
fn poll_close(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Event>>
fn poll( &mut self, cx: &mut Context<'_>, ) -> Poll<ConnectionHandlerEvent<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<THandler, O, TMap> InboundStreamHandler for MapEvent<THandler, TMap>
impl<THandler, O, TMap> InboundStreamHandler for MapEvent<THandler, TMap>
type InboundUpgrade = <THandler as InboundStreamHandler>::InboundUpgrade
type InboundUserData = <THandler as InboundStreamHandler>::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<THandler, O, TMap> OutboundStreamHandler for MapEvent<THandler, TMap>
impl<THandler, O, TMap> OutboundStreamHandler for MapEvent<THandler, TMap>
type OutboundUpgrade = <THandler as OutboundStreamHandler>::OutboundUpgrade
type OutboundUserData = <THandler as OutboundStreamHandler>::OutboundUserData
fn on_fully_negotiated( &mut self, user_data: Self::OutboundUserData, protocol: <Self::OutboundUpgrade as OutboundUpgradeSend>::Output, )
fn on_upgrade_error( &mut self, user_data: Self::OutboundUserData, error: StreamUpgradeError<<Self::OutboundUpgrade as OutboundUpgradeSend>::Error>, )
fn poll_outbound_request( &mut self, cx: &mut Context<'_>, ) -> Poll<SubstreamProtocol<Self::OutboundUpgrade, Self::OutboundUserData>>
Auto Trait Implementations§
impl<THandler, TMap> Freeze for MapEvent<THandler, TMap>
impl<THandler, TMap> RefUnwindSafe for MapEvent<THandler, TMap>where
THandler: RefUnwindSafe,
TMap: RefUnwindSafe,
impl<THandler, TMap> Send for MapEvent<THandler, TMap>
impl<THandler, TMap> Sync for MapEvent<THandler, TMap>
impl<THandler, TMap> Unpin for MapEvent<THandler, TMap>
impl<THandler, TMap> UnwindSafe for MapEvent<THandler, TMap>where
THandler: UnwindSafe,
TMap: 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> 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