pub struct PackageResolverSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PackageResolverSynchronousProxy
impl PackageResolverSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PackageResolverEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PackageResolverEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn resolve(
&self,
payload: PackageResolverResolveRequest,
___deadline: MonotonicInstant,
) -> Result<PackageResolverResolveResult, Error>
pub fn resolve( &self, payload: PackageResolverResolveRequest, ___deadline: MonotonicInstant, ) -> Result<PackageResolverResolveResult, Error>
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.
Trait Implementations§
Source§impl From<Channel> for PackageResolverSynchronousProxy
impl From<Channel> for PackageResolverSynchronousProxy
Source§impl From<PackageResolverSynchronousProxy> for Handle
impl From<PackageResolverSynchronousProxy> for Handle
Source§fn from(value: PackageResolverSynchronousProxy) -> Self
fn from(value: PackageResolverSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl SynchronousProxy for PackageResolverSynchronousProxy
impl SynchronousProxy for PackageResolverSynchronousProxy
Source§type Proxy = PackageResolverProxy
type Proxy = PackageResolverProxy
The async proxy for the same protocol.
Source§type Protocol = PackageResolverMarker
type Protocol = PackageResolverMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PackageResolverSynchronousProxy
impl RefUnwindSafe for PackageResolverSynchronousProxy
impl Send for PackageResolverSynchronousProxy
impl Sync for PackageResolverSynchronousProxy
impl Unpin for PackageResolverSynchronousProxy
impl UnwindSafe for PackageResolverSynchronousProxy
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