pub trait ProviderProxyInterface: Send + Sync {
type GetTypefaceByIdResponseFut: Future<Output = Result<ProviderGetTypefaceByIdResult, Error>> + Send;
type ListTypefacesResponseFut: Future<Output = Result<ProviderListTypefacesResult, Error>> + Send;
type GetTypefacesByFamilyResponseFut: Future<Output = Result<ProviderGetTypefacesByFamilyResult, Error>> + Send;
// Required methods
fn get_typeface_by_id(&self, id: u32) -> Self::GetTypefaceByIdResponseFut;
fn list_typefaces(
&self,
request: &ListTypefacesRequest,
iterator: ServerEnd<ListTypefacesIteratorMarker>,
) -> Self::ListTypefacesResponseFut;
fn get_typefaces_by_family(
&self,
family: &FamilyName,
) -> Self::GetTypefacesByFamilyResponseFut;
}Required Associated Types§
type GetTypefaceByIdResponseFut: Future<Output = Result<ProviderGetTypefaceByIdResult, Error>> + Send
type ListTypefacesResponseFut: Future<Output = Result<ProviderListTypefacesResult, Error>> + Send
type GetTypefacesByFamilyResponseFut: Future<Output = Result<ProviderGetTypefacesByFamilyResult, Error>> + Send
Required Methods§
fn get_typeface_by_id(&self, id: u32) -> Self::GetTypefaceByIdResponseFut
fn list_typefaces( &self, request: &ListTypefacesRequest, iterator: ServerEnd<ListTypefacesIteratorMarker>, ) -> Self::ListTypefacesResponseFut
fn get_typefaces_by_family( &self, family: &FamilyName, ) -> Self::GetTypefacesByFamilyResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".