Skip to main content

Crate offline_protocol_services

Crate offline_protocol_services 

Source
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.