pub struct UserClientHandle {
pub client: UserClient,
pub notifications: Receiver<UserClientNotification>,
pub requests: Receiver<UserClientRequest>,
}Expand description
A cloneable handle for controlling the user client.
Obtained from UserClient::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.
Handle returned by UserClient::connect() containing the client and its
notification/request channels.
Fields§
§client: UserClient§notifications: Receiver<UserClientNotification>§requests: Receiver<UserClientRequest>Auto Trait Implementations§
impl Freeze for UserClientHandle
impl RefUnwindSafe for UserClientHandle
impl Send for UserClientHandle
impl Sync for UserClientHandle
impl Unpin for UserClientHandle
impl UnsafeUnpin for UserClientHandle
impl UnwindSafe for UserClientHandle
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