Expand description
Networking support for the sos-sdk crate.
If the listen
feature is enabled the client is compiled
with support for sending and listening for change notification over
a websocket connection.
Re-exports§
pub use reqwest;
pub use sos_sdk as sdk;
pub use sos_protocol as protocol;
pub use sos_account_extras as extras;
preferences
orsecurity-report
orsystem-messages
Modules§
- hashcheck
hashcheck
Check password hashes using the hashcheck service. - pairing
pairing
Protocol for pairing devices.
Structs§
- File
Transfer Settings files
Settings for file transfer operations. - Client that can synchronize with a server over HTTP(S).
- Inflight
Request files
Inflight file transfer. - Inflight
Transfers files
Collection of pending transfers. - Listen
Options listen
Options used when listening for change notifications. - Account with networking capability.
- Options for network account creation.
- Network retry state and logic for exponential backoff.
- Bridge between a local account and a remote.
- Result of a sync operation with a single remote.
- Result of a sync operation.
- WebSocket
Handle listen
Handle to a websocket listener.
Enums§
- Information about a cancellation.
- Errors generated by the client module.
- Inflight
Notification files
Notification for inflight transfers. - Transfer
Error files
Reason for a transfer error notification.
Traits§
- Trait for types that can sync with multiple remotes.
- Trait for types that can sync with a single remote.
- Client that can synchronize with a remote server.
Functions§
- changes
listen
Read change messages from a websocket stream, and decode to change notifications that can be processed. - connect
listen
Create the websocket connection and listen for events. - Determine if the offline environment variable is set.
Type Aliases§
- Cancel
Channel files
Channel used to cancel uploads and downloads. - Account switcher for network-enabled accounts.
- Progress
Channel files
Channel for upload and download progress notifications. - Result type for the client module.