euv-core 0.48.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
use super::*;

/// Pluggable transport abstraction for fetching signed manifests and range-resumable content-addressed blobs.
pub trait ReleaseTransport: Send + Sync {
    /// Fetches the compatible signed `ReleaseManifest` for `(project, channel)` after protocol/ABI negotiation.
    ///
    /// # Arguments
    ///
    /// - `&str` - Project identifier.
    /// - `&str` - Channel name.
    /// - `&ClientNegotiation` - Client protocol, ABI, delivery mode, and capability declaration.
    ///
    /// # Returns
    ///
    /// - `Result<ReleaseManifest, DynamicReleaseError>` - Signed manifest or typed network/protocol error.
    fn fetch_manifest(
        &self,
        project: &str,
        channel: &str,
        negotiation: &ClientNegotiation,
    ) -> Result<ReleaseManifest, DynamicReleaseError>;

    /// Fetches immutable content-addressed blob bytes for `sha256`, optionally resuming from `range_start`.
    ///
    /// # Arguments
    ///
    /// - `&str` - Lowercase 64-character SHA-256 digest.
    /// - `u64` - Starting byte offset (`0` for full download, `> 0` for `Range: bytes=<offset>-`).
    ///
    /// # Returns
    ///
    /// - `Result<Vec<u8>, DynamicReleaseError>` - Downloaded bytes from `range_start` to EOF.
    fn fetch_blob(&self, sha256: &str, range_start: u64) -> Result<Vec<u8>, DynamicReleaseError>;
}