pub trait TpktConnection: Send {
// Required methods
fn get_protocol_infomation_list(&self) -> &Vec<Box<dyn ProtocolInformation>>;
fn split(
self,
) -> impl Future<Output = Result<(impl TpktReader, impl TpktWriter), TpktError>> + Send;
}Expand description
A trait representing a TPKT connection. There is no distinction between a client and a server connection once they are established.
Required Methods§
Sourcefn get_protocol_infomation_list(&self) -> &Vec<Box<dyn ProtocolInformation>>
fn get_protocol_infomation_list(&self) -> &Vec<Box<dyn ProtocolInformation>>
Gets the information regarding the protocols that have been negotiated during the connect phase.
Sourcefn split(
self,
) -> impl Future<Output = Result<(impl TpktReader, impl TpktWriter), TpktError>> + Send
fn split( self, ) -> impl Future<Output = Result<(impl TpktReader, impl TpktWriter), TpktError>> + Send
Splits a connection into reader and writer components. This must be done before the connection is used.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.