pub enum RetainedBlobsRequest {
Clear {
responder: RetainedBlobsClearResponder,
},
Replace {
iterator: ClientEnd<BlobIdIteratorMarker>,
responder: RetainedBlobsReplaceResponder,
},
}
Expand description
Manages the set of retained blobs.
Retained blobs will not be removed from the package cache, even if they aren’t fully present. There is only a single set active at once, and the provided APIs for configuring the set atomically replace the retained blobs set, it will not affect the retained packages set. On boot, the retained blobs set is always initialized to the empty set. Documentation on garbage collection contains details on various types of package indexes (static, retained, etc) and describes when a blob will be garbage collected or retained.
Variants§
Clear
Atomically clear the retained blob set, releasing any previously retained blobs.
Fields
responder: RetainedBlobsClearResponder
Replace
Atomically replace the retained blob set with the blob hashes provided by the given iterator. Duplicate IDs provided will be merged and processed as a single one.
- request
iterator
an iterator of blob IDs that should be retained.
Implementations§
Source§impl RetainedBlobsRequest
impl RetainedBlobsRequest
pub fn into_clear(self) -> Option<RetainedBlobsClearResponder>
pub fn into_replace( self, ) -> Option<(ClientEnd<BlobIdIteratorMarker>, RetainedBlobsReplaceResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL