pub struct Handler { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ConnectionHandler for Handler
impl ConnectionHandler for Handler
type Action = Infallible
type Event = Result<Duration, Failure>
fn handle_action(&mut self, _action: Self::Action)
fn poll_close(&mut self, _: &mut Context<'_>) -> Poll<Option<Self::Event>>
fn poll( &mut self, cx: &mut Context<'_>, ) -> Poll<ConnectionHandlerEvent<Self::Event>>
fn connection_keep_alive(&self) -> bool
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 OutboundStreamHandler for Handler
impl OutboundStreamHandler for Handler
type OutboundUpgrade = ReadyUpgrade<StreamProtocol>
type OutboundUserData = ()
fn on_fully_negotiated( &mut self, _user_data: Self::OutboundUserData, stream: <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 !RefUnwindSafe for Handler
impl !Sync for Handler
impl !UnwindSafe for Handler
impl Freeze for Handler
impl Send 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