Expand description

Actions

This module contains traits for running actions. To run actions:

  • For the sync feature, add this import:
    use skytable::actions::Actions;
  • For the async feature, add this import:
    use skytable::actions::AsyncActions;

Running actions

Once you have imported the required traits, you can now run the actions! For example:

use skytable::{actions::Actions, Connection};
let mut con = Connection::new("127.0.0.1", 2003).unwrap();
con.set("x", "100").unwrap();
let ret: String = con.get("x").unwrap();
assert_eq!(ret, "100");

Traits

Actions that can be run on a [SyncSocket] connection

Actions that can be run on an [AsyncSocket] connection