rust_agent_sdk/
lib.rs

1extern crate lru;
2extern crate mio_extras;
3extern crate reqwest;
4extern crate serde;
5extern crate url;
6extern crate ws;
7
8/// Error returned by most functions.
9///
10/// check error handling crate
11///
12/// For performance reasons, boxing is avoided in any hot path. For example, in
13/// `parse`, a custom error `enum` is defined. This is because the error is hit
14/// and handled during normal execution when a partial frame is received on a
15/// socket. `std::error::Error` is implemented for `parse::Error` which allows
16/// it to be converted to `Box<dyn std::error::Error>`.
17pub type Error = Box<dyn std::error::Error + Send + Sync>;
18
19/// A specialized `Result` type for mini-redis operations.
20///
21/// This is defined as a convenience.
22pub type Result<T> = std::result::Result<T, Error>;