pub enum FontResolverRequest {
Resolve {
package_url: String,
directory_request: ServerEnd<DirectoryMarker>,
responder: FontResolverResolveResponder,
},
}
Expand description
This resolves font packages from a registry.
This is intended to be implemented by package resolver components, and used exclusively by fuchsia.fonts.Provider.
DEPRECATED. This is an interim solution, and will be revisited when Component Framework v2 becomes available and allows non-component packages and easier directory routing.
Variants§
Resolve
Populates or updates the cache of a font package, fetching it if it is not present on the local system.
- request
package_url
the package URL of a font package. - request
directory_request
a request for a directory that will be resolved when the package has been successfully cached. The directory should contain a single file, corresponding to the asset filename. The client should retain the directory handle for as long as needed to prevent the package from being evicted from cache.
- error a zx_status value indicating failure. One of the following:
ZX_ERR_ACCESS_DENIED
if the resolver does not have permission to fetch a package blob.ZX_ERR_IO
if there is some other unspecified error during I/O.ZX_ERR_NOT_FOUND
if the font package or a package blob does not exist, or is not known to be a font package.ZX_ERR_NO_SPACE
if there is no space available to store the package.ZX_ERR_UNAVAILABLE
if the resolver is currently unable to fetch a package blob.
Implementations§
Source§impl FontResolverRequest
impl FontResolverRequest
pub fn into_resolve( self, ) -> Option<(String, ServerEnd<DirectoryMarker>, FontResolverResolveResponder)>
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 FontResolverRequest
impl !RefUnwindSafe for FontResolverRequest
impl Send for FontResolverRequest
impl Sync for FontResolverRequest
impl Unpin for FontResolverRequest
impl !UnwindSafe for FontResolverRequest
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