pub struct Handler { /* private fields */ }Trait Implementations§
Source§impl ConnectionHandler for Handler
impl ConnectionHandler for Handler
type Action = !
type Event = !
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 InboundStreamHandler for Handler
impl InboundStreamHandler for Handler
type InboundUpgrade = Upgrade
type InboundUserData = ()
fn listen_protocol( &self, ) -> SubstreamProtocol<Self::InboundUpgrade, Self::InboundUserData>
fn on_fully_negotiated( &mut self, _user_data: Self::InboundUserData, (stream, protocol): <Self::InboundUpgrade as InboundUpgradeSend>::Output, )
fn on_upgrade_error( &mut self, _user_data: Self::InboundUserData, _error: <Self::InboundUpgrade as InboundUpgradeSend>::Error, )
Auto Trait Implementations§
impl !RefUnwindSafe for Handler
impl !UnwindSafe for Handler
impl Freeze for Handler
impl Send for Handler
impl Sync for Handler
impl Unpin for Handler
impl UnsafeUnpin for Handler
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
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