pub struct RpcClient { /* private fields */ }Implementations§
Source§impl RpcClient
impl RpcClient
pub fn new(config: RpcConfig) -> Rc<Self>
pub fn open(&self, host: impl ToString, port: u16)
pub fn close(&self)
pub fn set_reconnect(&self, ms: u32)
pub fn cancel_reconnect(&self)
pub fn stop(&mut self)
pub fn on_open<F>(&self, callback: F)
pub fn on_open_failed<F>(&self, callback: F)
pub fn on_close<F>(&self, callback: F)where
F: Fn() + 'static,
Auto Trait Implementations§
impl !Freeze for RpcClient
impl !RefUnwindSafe for RpcClient
impl !Send for RpcClient
impl !Sync for RpcClient
impl !UnwindSafe for RpcClient
impl Unpin for RpcClient
impl UnsafeUnpin for RpcClient
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