pub struct RemoteClientHandle {
pub client: RemoteClient,
pub notifications: Receiver<RemoteClientNotification>,
pub requests: Receiver<RemoteClientRequest>,
}Expand description
A cloneable handle for controlling the remote client.
Obtained from RemoteClient::connect(), which authenticates with the proxy,
spawns the event loop internally, and returns this handle. All methods
communicate with the event loop through an internal command channel.
Clone and Send — share freely across tasks and threads.
Dropping all handles shuts down the event loop and disconnects from the proxy.
Handle returned by RemoteClient::connect() containing the client and its
notification/request channels.
Fields§
§client: RemoteClient§notifications: Receiver<RemoteClientNotification>§requests: Receiver<RemoteClientRequest>Auto Trait Implementations§
impl Freeze for RemoteClientHandle
impl RefUnwindSafe for RemoteClientHandle
impl Send for RemoteClientHandle
impl Sync for RemoteClientHandle
impl Unpin for RemoteClientHandle
impl UnsafeUnpin for RemoteClientHandle
impl UnwindSafe for RemoteClientHandle
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