pub struct ClientManagerImpl { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl ClientManager for ClientManagerImpl
impl ClientManager for ClientManagerImpl
Source§fn register_client(&mut self, address: String, name: String)
fn register_client(&mut self, address: String, name: String)
Stores a new client to the internal store with the given client info
Source§fn call_method(
&self,
client_name: &String,
method_name: &String,
arguments: Value,
) -> MethodResult
fn call_method( &self, client_name: &String, method_name: &String, arguments: Value, ) -> MethodResult
Calls a method on a remote client
Opens a TCP connection to the registered address if the client exists
On error an errored
MethodResult
will be returned with the message content of the error descriptionSource§fn get_registered_clients(&self) -> Vec<String>
fn get_registered_clients(&self) -> Vec<String>
Returns the names of all registered clients
Auto Trait Implementations§
impl Freeze for ClientManagerImpl
impl RefUnwindSafe for ClientManagerImpl
impl Send for ClientManagerImpl
impl Sync for ClientManagerImpl
impl Unpin for ClientManagerImpl
impl UnwindSafe for ClientManagerImpl
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