offline-protocol-services 0.30.0

Mesh service registry, discovery, and request/response for the Offline Protocol SDK
Documentation
/// Errors from mesh service operations.
// Adding a variant to a public error enum is a breaking change without
// this attribute; downstream crates must carry a wildcard arm.
#[non_exhaustive]
#[derive(Debug, thiserror::Error)]
pub enum ServiceError {
    /// Serialization or deserialization failed.
    #[error("serialization error: {0}")]
    Serialization(String),

    /// A payload field exceeds its maximum allowed size.
    #[error("payload too large: {0}")]
    PayloadTooLarge(String),

    /// An invalid service response status was provided.
    #[error("invalid status: {0} (expected one of: ok, not_found, error)")]
    InvalidStatus(String),

    /// Other service error.
    #[error("{0}")]
    Other(String),
}