pub struct TcpTpktServer { /* private fields */ }Expand description
A TPKT server implemented over a TCP connection.
Implementations§
Source§impl TcpTpktServer
impl TcpTpktServer
Sourcepub async fn listen(address: SocketAddr) -> Result<Self, TpktError>
pub async fn listen(address: SocketAddr) -> Result<Self, TpktError>
Start listening on the provided TCP port.
Sourcepub async fn accept<'a>(
&self,
) -> Result<(TcpTpktConnection, SocketAddr), TpktError>
pub async fn accept<'a>( &self, ) -> Result<(TcpTpktConnection, SocketAddr), TpktError>
Accept an incoming connection. This may be called multiple times.
Auto Trait Implementations§
impl !Freeze for TcpTpktServer
impl RefUnwindSafe for TcpTpktServer
impl Send for TcpTpktServer
impl Sync for TcpTpktServer
impl Unpin for TcpTpktServer
impl UnsafeUnpin for TcpTpktServer
impl UnwindSafe for TcpTpktServer
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