pub struct DummyHandler;Trait Implementations§
Source§impl Clone for DummyHandler
impl Clone for DummyHandler
Source§fn clone(&self) -> DummyHandler
fn clone(&self) -> DummyHandler
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 DummyHandler
impl ConnectionHandler for DummyHandler
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 DummyHandler
impl Debug for DummyHandler
Source§impl InboundStreamHandler for DummyHandler
impl InboundStreamHandler for DummyHandler
type InboundUpgrade = DeniedUpgrade
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 DummyHandler
impl OutboundStreamHandler for DummyHandler
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 DummyHandler
impl RefUnwindSafe for DummyHandler
impl Send for DummyHandler
impl Sync for DummyHandler
impl Unpin for DummyHandler
impl UnsafeUnpin for DummyHandler
impl UnwindSafe for DummyHandler
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