pub fn new(url: &str) -> Result<Self, Error> {
        let core = Core::new()?;
        let client = Client::new(&core.handle());

        Ok(Self {
            core: Arc::new(Mutex::new(core)),
            client: Arc::new(client),
            url: Arc::new(Mutex::new(url.to_string())),
        })
    }
/// Create a new client that will send requests to a path-rpc-server
Create a new client that will send requests to a path-rpc-server
Create a new client that will send requests to a path - rpc - server
pub fn new(url: &str) -> Result<Self, Error> {
        let core = Core::new()?;
        let client = Client::new(&core.handle());
        Ok(Self {
            core: Arc::new(Mutex::new(core)),
            client: Arc::new(client),
            url: Arc::new(Mutex::new(url.to_string())),
        })
    }
pub fn new ( url : & str ) -> Result < Self , Error > { let core = Core :: new ( ) ? ; let client = Client :: new ( & core . handle ( ) ) ; Ok ( Self { core : Arc :: new ( Mutex :: new ( core ) ) , client : Arc :: new ( client ) , url : Arc :: new ( Mutex :: new ( url . to_string ( ) ) ) , } ) }
Create a new client that will send requests to a path-rpc-server
Create a new client that will send requests to a path - rpc - server
url
&str
url
&str