Expand description
Mesh service discovery and request/response for the Offline Protocol SDK.
Re-exports§
pub use error::ServiceError;pub use events::ServiceEvent;pub use services::DiscoverResult;pub use services::MeshServices;pub use services::OutboundMessage;pub use services::SendRequestResult;pub use services::SendResponseResult;pub use services::ServiceAction;
Modules§
- error
- Error types for mesh service operations.
- events
- Event types emitted by mesh service operations.
- services
- Core service registry and message handling logic.
Constants§
- DISCOVERY_
GOSSIP_ MAX_ FANOUT - Maximum number of peers to forward a discovery query to per hop.
- DISCOVERY_
INITIAL_ BROADCAST_ MAX - Maximum number of peers the originator broadcasts an initial discovery query to.
- DISCOVERY_
QUERY_ DEDUP_ TTL_ SECS - TTL for deduplicating service discovery queries (seconds).
- DISCOVERY_
QUERY_ DEFAULT_ MAX_ HOPS - Default maximum hops for service discovery query gossip forwarding.
- DISCOVERY_
QUERY_ MAX_ DEDUP_ ENTRIES - Maximum number of seen discovery query IDs to track for dedup.
- MAX_
SERVICE_ BODY_ SIZE - Maximum allowed size (bytes) for a service request/response body field.
- MAX_
SERVICE_ METHOD_ LEN - Maximum allowed length for a service request method field.
- MAX_
SERVICE_ PAYLOAD_ SIZE - Maximum allowed size (bytes) for the raw payload string after stripping the prefix.
- SVC_
DISCOVER_ QUERY - Prefix for service discovery query.
- SVC_
DISCOVER_ RESPONSE - Prefix for service discovery response.
- SVC_
MESSAGE_ PREFIX - Common prefix shared by all service message types.
- SVC_
REQUEST - Prefix for service request.
- SVC_
RESPONSE - Prefix for service response.
- VALID_
SERVICE_ STATUSES - Valid values for service response status.