pub struct ProviderProxy { /* private fields */ }
Implementations§
Source§impl ProviderProxy
impl ProviderProxy
Sourcepub fn take_event_stream(&self) -> ProviderEventStream
pub fn take_event_stream(&self) -> ProviderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_font(
&self,
request: &Request,
) -> QueryResponseFut<Option<Box<Response>>, DefaultFuchsiaResourceDialect>
pub fn get_font( &self, request: &Request, ) -> QueryResponseFut<Option<Box<Response>>, DefaultFuchsiaResourceDialect>
Deprecated. See GetTypeface
.
Returns font that matches specified request
.
Sourcepub fn get_family_info(
&self,
family: &str,
) -> QueryResponseFut<Option<Box<FamilyInfo>>, DefaultFuchsiaResourceDialect>
pub fn get_family_info( &self, family: &str, ) -> QueryResponseFut<Option<Box<FamilyInfo>>, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<TypefaceResponse, DefaultFuchsiaResourceDialect>
pub fn get_typeface( &self, request: &TypefaceRequest, ) -> QueryResponseFut<TypefaceResponse, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<FontFamilyInfo, DefaultFuchsiaResourceDialect>
pub fn get_font_family_info( &self, family: &FamilyName, ) -> QueryResponseFut<FontFamilyInfo, DefaultFuchsiaResourceDialect>
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>,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn register_font_set_event_listener( &self, listener: ClientEnd<FontSetEventListenerMarker>, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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 Clone for ProviderProxy
impl Clone for ProviderProxy
Source§fn clone(&self) -> ProviderProxy
fn clone(&self) -> ProviderProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProviderProxy
impl Debug for ProviderProxy
Source§impl ProviderProxyInterface for ProviderProxy
impl ProviderProxyInterface for ProviderProxy
type GetFontResponseFut = QueryResponseFut<Option<Box<Response>>>
type GetFamilyInfoResponseFut = QueryResponseFut<Option<Box<FamilyInfo>>>
type GetTypefaceResponseFut = QueryResponseFut<TypefaceResponse>
type GetFontFamilyInfoResponseFut = QueryResponseFut<FontFamilyInfo>
type RegisterFontSetEventListenerResponseFut = QueryResponseFut<()>
fn get_font(&self, request: &Request) -> Self::GetFontResponseFut
fn get_family_info(&self, family: &str) -> Self::GetFamilyInfoResponseFut
fn get_typeface( &self, request: &TypefaceRequest, ) -> Self::GetTypefaceResponseFut
fn get_font_family_info( &self, family: &FamilyName, ) -> Self::GetFontFamilyInfoResponseFut
fn register_font_set_event_listener( &self, listener: ClientEnd<FontSetEventListenerMarker>, ) -> Self::RegisterFontSetEventListenerResponseFut
Source§impl Proxy for ProviderProxy
impl Proxy for ProviderProxy
Source§type Protocol = ProviderMarker
type Protocol = ProviderMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for ProviderProxy
impl !RefUnwindSafe for ProviderProxy
impl Send for ProviderProxy
impl Sync for ProviderProxy
impl Unpin for ProviderProxy
impl !UnwindSafe for ProviderProxy
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
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)
clone_to_uninit
)