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