/// Creates a new client and connects it to the local plasma store.
/// * `store_socket_name` The name of the UNIX domain socket to use to connect
///   to the Plasma store.
/// * `num_retries` number of attempts to connect to IPC socket, default 50
Creates a new client and connects it to the local plasma store.
`store_socket_name` The name of the UNIX domain socket to use to connect
to the Plasma store.
`num_retries` number of attempts to connect to IPC socket, default 50
Creates a new client and connects it to the local plasma store . ` store_socket_name ` The name of the UNIX domain socket to use to connect to the Plasma store . ` num_retries ` number of attempts to connect to IPC socket default 50
pub fn new(store_socket_name: &str, num_retries: u32) -> Result<Self, PlasmaError> {
        let client_ptr = plasma::new_plasma_client();
        let status = plasma::connect(client_ptr.as_ref().unwrap(), store_socket_name, num_retries);
        match status.code {
            plasma::StatusCode::OK => Ok(PlasmaClient {
                socket_name: String::from(store_socket_name),
                client_ptr,
            }),
            _ => Err(PlasmaError::ConnectError(status.msg)),
        }
    }
pub fn new ( store_socket_name : & str , num_retries : u32 ) -> Result < Self , PlasmaError > { let client_ptr = plasma :: new_plasma_client ( ) ; let status = plasma :: connect ( client_ptr . as_ref ( ) . unwrap ( ) , store_socket_name , num_retries ) ; match status . code { plasma :: StatusCode :: OK => Ok ( PlasmaClient { socket_name : String :: from ( store_socket_name ) , client_ptr , } ) , _ => Err ( PlasmaError :: ConnectError ( status . msg ) ) , } }
Creates a new client and connects it to the local plasma store.
Creates a new client and connects it to the local plasma store .
store_socket_name
&str
num_retries
u32