pub struct AsyncTcpClient { /* private fields */ }Expand description
Asynchronous TCP client that encapsulates the shutdown signal.
Implementations§
Source§impl AsyncTcpClient
impl AsyncTcpClient
Sourcepub async fn subscribe(
&self,
addr: &str,
subscription_request: TcpSubscriptionRequest,
) -> Result<Receiver<Event>, TcpClientError>
pub async fn subscribe( &self, addr: &str, subscription_request: TcpSubscriptionRequest, ) -> Result<Receiver<Event>, TcpClientError>
Subscribes to the TCP server at addr with the given subscription request.
Returns a channel receiver for incoming events.
Auto Trait Implementations§
impl Freeze for AsyncTcpClient
impl RefUnwindSafe for AsyncTcpClient
impl Send for AsyncTcpClient
impl Sync for AsyncTcpClient
impl Unpin for AsyncTcpClient
impl UnwindSafe for AsyncTcpClient
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