Skip to main content

kael_net/
lib.rs

1#![deny(missing_docs)]
2
3//! Transport-agnostic networking, sync, and collaboration primitives for Kael.
4
5/// Auth token storage for service credentials.
6pub mod auth;
7/// Typed, transport-agnostic API request and response models.
8pub mod client;
9/// Offline request queue for deferred execution.
10pub mod offline;
11/// Collaboration presence tracking for multi-user sessions.
12pub mod presence;
13/// Retry policy with exponential backoff.
14pub mod retry;
15/// Bounded WebSocket transport for native and browser applications.
16pub mod websocket;
17
18pub use auth::{AuthToken, SecureTokenStore, TokenStore};
19pub use client::{ApiRequest, ApiResponse, HttpMethod};
20pub use offline::{EnqueueOutcome, OfflineQueue, QueuedRequest};
21pub use presence::{Presence, PresenceStatus, PresenceTracker};
22pub use retry::RetryPolicy;
23pub use websocket::{
24    AllowAllWebSocketHosts, DenyAllWebSocketHosts, WebSocketClient, WebSocketClose,
25    WebSocketCloseError, WebSocketCloseMetadata, WebSocketConfig, WebSocketConfigBuilder,
26    WebSocketConnectError, WebSocketErrorKind, WebSocketErrorMetadata, WebSocketEvent,
27    WebSocketEventKind, WebSocketHostPolicy, WebSocketMessage, WebSocketOpenMetadata,
28    WebSocketReconnectMetadata, WebSocketReconnectPolicy, WebSocketSendError, WebSocketState,
29};