pub struct ProviderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ProviderSynchronousProxy
impl ProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ProviderEvent, 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 get_font(
&self,
request: &Request,
___deadline: MonotonicInstant,
) -> Result<Option<Box<Response>>, Error>
pub fn get_font( &self, request: &Request, ___deadline: MonotonicInstant, ) -> Result<Option<Box<Response>>, Error>
Deprecated. See GetTypeface
.
Returns font that matches specified request
.
Sourcepub fn get_family_info(
&self,
family: &str,
___deadline: MonotonicInstant,
) -> Result<Option<Box<FamilyInfo>>, Error>
pub fn get_family_info( &self, family: &str, ___deadline: MonotonicInstant, ) -> Result<Option<Box<FamilyInfo>>, Error>
Deprecated. See GetFontFamilyInfo
.
Returns information for the specified font family or null if there is no family with the specified name. This function respects family name aliases and ignores case, so request for “robotoSLAB” will return FamilyInfo for “Roboto Slab”.
Sourcepub fn get_typeface(
&self,
request: &TypefaceRequest,
___deadline: MonotonicInstant,
) -> Result<TypefaceResponse, Error>
pub fn get_typeface( &self, request: &TypefaceRequest, ___deadline: MonotonicInstant, ) -> Result<TypefaceResponse, Error>
Returns a typeface that matches the specified request
, or an empty table if no matching
face is found. (The latter is more likely to happen if TypefaceRequestFlags.EXACT_FAMILY
is used to disable fallbacks.)
Sourcepub fn get_font_family_info(
&self,
family: &FamilyName,
___deadline: MonotonicInstant,
) -> Result<FontFamilyInfo, Error>
pub fn get_font_family_info( &self, family: &FamilyName, ___deadline: MonotonicInstant, ) -> Result<FontFamilyInfo, Error>
Returns information for the specified font family, or an empty table if there is no family with the specified name.
This function respects family name aliases and ignores case. For example, “RobotoSlab” is an
alias for the canonical name “Roboto Slab”. A request for “robotoSLAB” would return the
FontFamilyInfo
for “Roboto Slab” due to the case-insensitivity and alias resolution.
Sourcepub fn register_font_set_event_listener(
&self,
listener: ClientEnd<FontSetEventListenerMarker>,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register_font_set_event_listener( &self, listener: ClientEnd<FontSetEventListenerMarker>, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Register a listener to be notified when the set of available fonts or mappings has changed. A client can register as many listeners as it wishes.
To unregister, close the channel.
Trait Implementations§
Source§impl Debug for ProviderSynchronousProxy
impl Debug for ProviderSynchronousProxy
Source§impl SynchronousProxy for ProviderSynchronousProxy
impl SynchronousProxy for ProviderSynchronousProxy
Source§type Proxy = ProviderProxy
type Proxy = ProviderProxy
Source§type Protocol = ProviderMarker
type Protocol = ProviderMarker
Proxy
controls.