pub trait InboundStreamHandler: ConnectionHandler {
type InboundUpgrade: InboundUpgradeSend;
type InboundUserData: Send + 'static;
// Required methods
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,
);
}Required Associated Types§
type InboundUpgrade: InboundUpgradeSend
type InboundUserData: Send + 'static
Required Methods§
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, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".