pub enum PackageResolverRequest {
Resolve {
payload: PackageResolverResolveRequest,
responder: PackageResolverResolveResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: PackageResolverControlHandle,
method_type: MethodType,
},
}
Expand description
An abstract representation of a package resolver.
This is exposed to off-target SDK tooling, including ffx. Changes are subject to the compatibility requirements set forth by those tools.
Variants§
Resolve
If this method succeeds, and package garbage collection is not triggered in the interim, then subsequent resolves of the same package will not need to download any files. This is useful for pre-fetching large packages.
- request
package_url
the absolute package URL for a package. The following link describes the format: https://fuchsia.dev/fuchsia-src/concepts/packages/package_url. URLs with fragments (aka resource paths) are used to indicate files within packages (such as component manifests), not just packages, and so will be rejected.
- error indicates failure. See
ResolveError
for values and error scenarios.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: PackageResolverControlHandle
§
method_type: MethodType
Implementations§
Source§impl PackageResolverRequest
impl PackageResolverRequest
pub fn into_resolve( self, ) -> Option<(PackageResolverResolveRequest, PackageResolverResolveResponder)>
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 PackageResolverRequest
impl !RefUnwindSafe for PackageResolverRequest
impl Send for PackageResolverRequest
impl Sync for PackageResolverRequest
impl Unpin for PackageResolverRequest
impl !UnwindSafe for PackageResolverRequest
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