pub struct TcpTpktConnection { /* private fields */ }Expand description
An established TPKT connection.
Implementations§
Source§impl TcpTpktConnection
impl TcpTpktConnection
Sourcepub async fn connect<'a>(
address: SocketAddr,
) -> Result<TcpTpktConnection, TpktError>
pub async fn connect<'a>( address: SocketAddr, ) -> Result<TcpTpktConnection, TpktError>
Initiates a client TPKT connection.
Trait Implementations§
Source§impl TpktConnection for TcpTpktConnection
impl TpktConnection for TcpTpktConnection
Source§fn 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.
Source§async fn split(self) -> Result<(impl TpktReader, impl TpktWriter), TpktError>
async fn split(self) -> Result<(impl TpktReader, impl TpktWriter), TpktError>
Splits a connection into reader and writer components. This must be done before the connection is used.
Auto Trait Implementations§
impl Freeze for TcpTpktConnection
impl !RefUnwindSafe for TcpTpktConnection
impl Send for TcpTpktConnection
impl !Sync for TcpTpktConnection
impl Unpin for TcpTpktConnection
impl UnsafeUnpin for TcpTpktConnection
impl !UnwindSafe for TcpTpktConnection
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