pub fn new() -> TestClient {
        let mut client = TestClient {
            basic_client: BasicClient::new(AuthenticationData::AppIdentity(Secret::new(
                String::from("root"),
            ))),
            created_keys: Some(HashSet::new()),
        };

        let ipc_handler = unix_socket::Handler::new(TEST_SOCKET_PATH.into(), Some(TEST_TIMEOUT));
        client.basic_client.set_ipc_handler(Box::from(ipc_handler));

        let crypto_provider = client.find_crypto_provider();
        client.set_provider(crypto_provider);
        client
            .basic_client
            .set_timeout(Some(Duration::from_secs(10)));

        client
    }
/// Creates a TestClient instance.
///
/// The implicit provider chosen for servicing cryptographic operations is decided through
/// a call to `list_providers`, followed by choosing the first non-Core provider.
Creates a TestClient instance.
The implicit provider chosen for servicing cryptographic operations is decided through
a call to `list_providers`, followed by choosing the first non-Core provider.
Creates a TestClient instance . The implicit provider chosen for servicing cryptographic operations is decided through a call to ` list_providers ` followed by choosing the first non - Core provider .
pub fn new() -> TestClient {
        let mut client = TestClient {
            basic_client: BasicClient::new(AuthenticationData::AppIdentity(Secret::new(
                String::from("root"),
            ))),
            created_keys: Some(HashSet::new()),
        };
        let ipc_handler = unix_socket::Handler::new(TEST_SOCKET_PATH.into(), Some(TEST_TIMEOUT));
        client.basic_client.set_ipc_handler(Box::from(ipc_handler));
        let crypto_provider = client.find_crypto_provider();
        client.set_provider(crypto_provider);
        client
            .basic_client
            .set_timeout(Some(Duration::from_secs(10)));
        client
    }
pub fn new ( ) -> TestClient { let mut client = TestClient { basic_client : BasicClient :: new ( AuthenticationData :: AppIdentity ( Secret :: new ( String :: from ( " " ) , ) ) ) , created_keys : Some ( HashSet :: new ( ) ) , } ; let ipc_handler = unix_socket :: Handler :: new ( TEST_SOCKET_PATH . into ( ) , Some ( TEST_TIMEOUT ) ) ; client . basic_client . set_ipc_handler ( Box :: from ( ipc_handler ) ) ; let crypto_provider = client . find_crypto_provider ( ) ; client . set_provider ( crypto_provider ) ; client . basic_client . set_timeout ( Some ( Duration :: from_secs ( 10 ) ) ) ; client }
Creates a TestClient instance.
Creates a TestClient instance .