pub enum OtaDownloaderRequest {
FetchBlob {
hash: BlobId,
base_url: String,
responder: OtaDownloaderFetchBlobResponder,
},
}
Variants§
FetchBlob
Fetches a blob from the given hash and base url.
On success, the blob will be written to the filesystem, but not sync’d, client should call
PackageCache.Sync
to guarantee blobs are persisted after all blobs are fetched.
- request
hash
the hash of the blob to fetch. - request
base_url
the base URL of the blob, the full URL of the blob will be constructed as “$base_url/$delivery_blob_type/$hash”.
- error indicates failure. See
fuchsia.pkg.ResolveError
for values and error scenarios.
Implementations§
Source§impl OtaDownloaderRequest
impl OtaDownloaderRequest
pub fn into_fetch_blob( self, ) -> Option<(BlobId, String, OtaDownloaderFetchBlobResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OtaDownloaderRequest
impl !RefUnwindSafe for OtaDownloaderRequest
impl Send for OtaDownloaderRequest
impl Sync for OtaDownloaderRequest
impl Unpin for OtaDownloaderRequest
impl !UnwindSafe for OtaDownloaderRequest
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