Module skytable::actions [−][src]
Expand description
Actions
This module contains traits for running actions. To run actions:
- For the
syncfeature, add this import:use skytable::actions::Actions; - For the
asyncfeature, 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
syncActions that can be run on a [SyncSocket] connection
AsyncActions
asyncActions that can be run on an [AsyncSocket] connection
Type Definitions
AsyncResult
asyncA special result that is returned when running actions (async)