sos_net/
lib.rs

1#![allow(clippy::result_large_err)]
2#![allow(clippy::module_inception)]
3#![deny(missing_docs)]
4#![forbid(unsafe_code)]
5#![cfg_attr(all(doc, CHANNEL_NIGHTLY), feature(doc_auto_cfg))]
6//! Networking support for the [Save Our Secrets](https://saveoursecrets.com) SDK.
7//!
8//! If the `listen` feature is enabled the client is compiled
9//! with support for sending and listening for change notification over
10//! a websocket connection.
11
12mod account;
13mod error;
14#[cfg(feature = "pairing")]
15pub mod pairing;
16
17pub use account::*;
18pub use error::Error;
19
20#[cfg(feature = "hashcheck")]
21pub use sos_protocol::hashcheck;
22
23/// Remote result.
24pub type RemoteResult = sos_protocol::RemoteResult<Error>;
25
26/// Sync result.
27pub type SyncResult = sos_protocol::SyncResult<Error>;
28
29/// Result type for the client module.
30pub(crate) type Result<T> = std::result::Result<T, error::Error>;
31
32pub use sos_protocol::is_offline;