pub struct TsEventAcceptor<IO: AsyncRead + AsyncWrite> { /* private fields */ }Expand description
Accept TsEventSocket connections
Implementations§
Source§impl<IO> TsEventAcceptor<IO>where
IO: AsyncRead + AsyncWrite,
impl<IO> TsEventAcceptor<IO>where
IO: AsyncRead + AsyncWrite,
Sourcepub async fn listen(
io: CloudProtoSocket<IO>,
) -> Result<(Self, TsConnectInfo), CloudProtoError>
pub async fn listen( io: CloudProtoSocket<IO>, ) -> Result<(Self, TsConnectInfo), CloudProtoError>
Wait for an incoming TS client connection, and return the received TsConnectInfo
Sourcepub async fn accept(
self,
reply: TsConnectResponse,
) -> Result<TsEventSocket<IO>, CloudProtoError>
pub async fn accept( self, reply: TsConnectResponse, ) -> Result<TsEventSocket<IO>, CloudProtoError>
Accept an incoming TS client, establishing a connected socket
Auto Trait Implementations§
impl<IO> Freeze for TsEventAcceptor<IO>
impl<IO> RefUnwindSafe for TsEventAcceptor<IO>
impl<IO> Send for TsEventAcceptor<IO>where
IO: Send,
impl<IO> Sync for TsEventAcceptor<IO>where
IO: Sync,
impl<IO> Unpin for TsEventAcceptor<IO>
impl<IO> UnsafeUnpin for TsEventAcceptor<IO>
impl<IO> UnwindSafe for TsEventAcceptor<IO>
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