rust-agent-sdk 0.0.1

Liveperson Agent Messaging SDK for Rust
Documentation
extern crate lru;
extern crate mio_extras;
extern crate reqwest;
extern crate serde;
extern crate url;
extern crate ws;

/// Error returned by most functions.
///
/// check error handling crate
///
/// For performance reasons, boxing is avoided in any hot path. For example, in
/// `parse`, a custom error `enum` is defined. This is because the error is hit
/// and handled during normal execution when a partial frame is received on a
/// socket. `std::error::Error` is implemented for `parse::Error` which allows
/// it to be converted to `Box<dyn std::error::Error>`.
pub type Error = Box<dyn std::error::Error + Send + Sync>;

/// A specialized `Result` type for mini-redis operations.
///
/// This is defined as a convenience.
pub type Result<T> = std::result::Result<T, Error>;