pub enum RetainedPackagesRequest {
Clear {
responder: RetainedPackagesClearResponder,
},
Replace {
iterator: ClientEnd<BlobIdIteratorMarker>,
responder: RetainedPackagesReplaceResponder,
},
}
Expand description
Manages the set of retained packages.
Retained packages 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 that set. On boot, the retained package 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 package will be garbage collected or retained.
Variants§
Clear
Atomically clear the retained package set, releasing any previously retained packages.
Fields
responder: RetainedPackagesClearResponder
Replace
Atomically replace the retained package set with the package hashes provided by the given iterator. Duplicate IDs provided will be merged and processed as a single one.
- request
iterator
an iterator of package blob IDs that should be retained.
Implementations§
Source§impl RetainedPackagesRequest
impl RetainedPackagesRequest
pub fn into_clear(self) -> Option<RetainedPackagesClearResponder>
pub fn into_replace( self, ) -> Option<(ClientEnd<BlobIdIteratorMarker>, RetainedPackagesReplaceResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL