Skip to main content

offline_protocol_services/
lib.rs

1#![deny(unsafe_code)]
2#![warn(missing_docs)]
3
4//! Mesh service discovery and request/response for the Offline Protocol SDK.
5
6/// Error types for mesh service operations.
7pub mod error;
8/// Event types emitted by mesh service operations.
9pub mod events;
10pub(crate) mod payloads;
11/// Core service registry and message handling logic.
12pub mod services;
13
14pub use error::ServiceError;
15pub use events::ServiceEvent;
16pub use payloads::{
17    DISCOVERY_GOSSIP_MAX_FANOUT, DISCOVERY_INITIAL_BROADCAST_MAX, DISCOVERY_QUERY_DEDUP_TTL_SECS,
18    DISCOVERY_QUERY_DEFAULT_MAX_HOPS, DISCOVERY_QUERY_MAX_DEDUP_ENTRIES, MAX_SERVICE_BODY_SIZE,
19    MAX_SERVICE_METHOD_LEN, MAX_SERVICE_PAYLOAD_SIZE, SVC_DISCOVER_QUERY, SVC_DISCOVER_RESPONSE,
20    SVC_MESSAGE_PREFIX, SVC_REQUEST, SVC_RESPONSE, VALID_SERVICE_STATUSES,
21};
22pub use services::{
23    DiscoverResult, MeshServices, OutboundMessage, SendRequestResult, SendResponseResult,
24    ServiceAction,
25};