pub struct TypefaceRequest {
pub query: Option<TypefaceQuery>,
pub flags: Option<TypefaceRequestFlags>,
pub cache_miss_policy: Option<CacheMissPolicy>,
/* private fields */
}
Expand description
Parameters for requesting a typeface.
Fields§
§query: Option<TypefaceQuery>
Parameters for looking up a typeface.
flags: Option<TypefaceRequestFlags>
Flags for how to process the request, such as which kinds of substitutions are permitted.
cache_miss_policy: Option<CacheMissPolicy>
Setting for what to do if the requested typeface exists but is not cached, and therefore cannot be served immediately.
If this field is empty, the default policy is
[fuchsia.fonts/CacheMissPolicy.BLOCK_UNTIL_DOWNLOADED
].
If the client needs an immediate response, it can choose one of the non-blocking policies.
In this case, clients can also register to be notified when new fonts have been added to the
cache by calling [fuchsia.fonts/Provider.RegisterFontSetEventListener
].
Trait Implementations§
Source§impl Clone for TypefaceRequest
impl Clone for TypefaceRequest
Source§fn clone(&self) -> TypefaceRequest
fn clone(&self) -> TypefaceRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TypefaceRequest
impl Debug for TypefaceRequest
Source§impl<D: ResourceDialect> Decode<TypefaceRequest, D> for TypefaceRequest
impl<D: ResourceDialect> Decode<TypefaceRequest, D> for TypefaceRequest
Source§impl Default for TypefaceRequest
impl Default for TypefaceRequest
Source§fn default() -> TypefaceRequest
fn default() -> TypefaceRequest
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<TypefaceRequest, D> for &TypefaceRequest
impl<D: ResourceDialect> Encode<TypefaceRequest, D> for &TypefaceRequest
Source§impl PartialEq for TypefaceRequest
impl PartialEq for TypefaceRequest
Source§impl TypeMarker for TypefaceRequest
impl TypeMarker for TypefaceRequest
Source§type Owned = TypefaceRequest
type Owned = TypefaceRequest
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for TypefaceRequest
impl ValueTypeMarker for TypefaceRequest
Source§type Borrowed<'a> = &'a TypefaceRequest
type Borrowed<'a> = &'a TypefaceRequest
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for TypefaceRequest
impl StructuralPartialEq for TypefaceRequest
Auto Trait Implementations§
impl Freeze for TypefaceRequest
impl RefUnwindSafe for TypefaceRequest
impl Send for TypefaceRequest
impl Sync for TypefaceRequest
impl Unpin for TypefaceRequest
impl UnwindSafe for TypefaceRequest
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)