pub struct HttpReleaseTransport { /* private fields */ }Expand description
Pure-std HTTP/1.1 release transport fetching signed manifests and range-resumable content-addressed blobs.
Implementations§
Source§impl HttpReleaseTransport
impl HttpReleaseTransport
pub fn get_base_url(&self) -> &String
pub fn get_mut_base_url(&mut self) -> &mut String
pub fn set_base_url(&mut self, val: String) -> &mut Self
pub fn get_timeout_ms(&self) -> u64
pub fn get_mut_timeout_ms(&mut self) -> &mut u64
pub fn set_timeout_ms(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for HttpReleaseTransport
impl Clone for HttpReleaseTransport
Source§impl Debug for HttpReleaseTransport
impl Debug for HttpReleaseTransport
impl Eq for HttpReleaseTransport
Source§impl PartialEq for HttpReleaseTransport
impl PartialEq for HttpReleaseTransport
Source§impl ReleaseTransport for HttpReleaseTransport
Real pure-std HTTP/1.1 manifest and range-resumable blob fetching on HttpReleaseTransport.
impl ReleaseTransport for HttpReleaseTransport
Real pure-std HTTP/1.1 manifest and range-resumable blob fetching on HttpReleaseTransport.
Source§fn fetch_manifest(
&self,
project: &str,
channel: &str,
negotiation: &ClientNegotiation,
) -> Result<ReleaseManifest, DynamicReleaseError>
fn fetch_manifest( &self, project: &str, channel: &str, negotiation: &ClientNegotiation, ) -> Result<ReleaseManifest, DynamicReleaseError>
Fetches a signed ReleaseManifest from /v1/projects/{project}/channels/{channel}/manifest.
§Arguments
&str- Project identifier.&str- Channel name.&ClientNegotiation- Protocol, ABI, delivery mode, and track negotiation parameters.
§Returns
Result<ReleaseManifest, DynamicReleaseError>- Deserialized manifest or typed error.
Source§fn fetch_blob(
&self,
sha256: &str,
range_start: u64,
) -> Result<Vec<u8>, DynamicReleaseError>
fn fetch_blob( &self, sha256: &str, range_start: u64, ) -> Result<Vec<u8>, DynamicReleaseError>
Fetches immutable content-addressed blob bytes from /v1/blobs/{sha256} with optional byte-range resume.
§Arguments
&str- Lowercase 64-character SHA-256 digest.u64- Starting byte offset (0for full download).
§Returns
Result<Vec<u8>, DynamicReleaseError>- Downloaded bytes fromrange_startto EOF.
impl StructuralPartialEq for HttpReleaseTransport
Auto Trait Implementations§
impl Forget for HttpReleaseTransport
impl Freeze for HttpReleaseTransport
impl Move for HttpReleaseTransport
impl RefUnwindSafe for HttpReleaseTransport
impl Send for HttpReleaseTransportwhere
RawVecInner: Send,
impl Sync for HttpReleaseTransportwhere
RawVecInner: Sync,
impl Unpin for HttpReleaseTransport
impl UnsafeUnpin for HttpReleaseTransport
impl UnwindSafe for HttpReleaseTransportwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more