pub struct TcpServiceClient { /* private fields */ }Implementations§
Source§impl TcpServiceClient
impl TcpServiceClient
pub fn instance_id(&self) -> InstanceId
pub fn for_instance(client: RpcClient, instance_id: InstanceId) -> Self
pub async fn resolve_named( client: RpcClient, name: impl Into<String>, ) -> Result<Self, RuntimeError>
pub async fn connect( &self, request: &SocketConnectRequest, ) -> Result<ResourceHandle, RuntimeError>
pub async fn socket_write( &self, request: &SocketWriteRequest, ) -> Result<Empty, RuntimeError>
pub async fn socket_end( &self, request: &ResourceHandle, ) -> Result<Empty, RuntimeError>
pub async fn socket_close( &self, request: &ResourceHandle, ) -> Result<Empty, RuntimeError>
pub async fn server_listen( &self, request: &SocketListenRequest, ) -> Result<ListenResult, RuntimeError>
pub async fn server_close( &self, request: &ResourceHandle, ) -> Result<Empty, RuntimeError>
pub fn subscribe_event(&self) -> TcpServiceEventReceiver
Trait Implementations§
Source§impl Clone for TcpServiceClient
impl Clone for TcpServiceClient
Source§fn clone(&self) -> TcpServiceClient
fn clone(&self) -> TcpServiceClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TcpServiceClient
impl !UnwindSafe for TcpServiceClient
impl Freeze for TcpServiceClient
impl Send for TcpServiceClient
impl Sync for TcpServiceClient
impl Unpin for TcpServiceClient
impl UnsafeUnpin for TcpServiceClient
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