Module skytable::actions [−][src]
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(); assert_eq!(con.get("x").unwrap(), "100");
Constants
The error string returned when the snapshot engine is busy
The error string returned when periodic snapshots are busy
Traits
Actions
sync
Actions that can be run on a [SyncSocket
] connection
AsyncActions
async
Actions that can be run on an [AsyncSocket
] connection
Type Definitions
A special result that is returned when running actions
AsyncResult
async
A special result that is returned when running actions (async)