pub struct LoaderProxy { /* private fields */ }Implementations§
Source§impl LoaderProxy
impl LoaderProxy
Sourcepub fn take_event_stream(&self) -> LoaderEventStream
pub fn take_event_stream(&self) -> LoaderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get(
&self,
name: &str,
) -> QueryResponseFut<Option<Vmo>, DefaultFuchsiaResourceDialect> ⓘ
pub fn get( &self, name: &str, ) -> QueryResponseFut<Option<Vmo>, DefaultFuchsiaResourceDialect> ⓘ
Requests a client driver library with the given name from the Vulkan loader service. Returns a VMO suitable for loading as a dynamic library on success, a null handle on failure.
Sourcepub fn connect_to_manifest_fs(
&self,
options: ConnectToManifestOptions,
channel: Channel,
) -> Result<(), Error>
pub fn connect_to_manifest_fs( &self, options: ConnectToManifestOptions, channel: Channel, ) -> Result<(), Error>
Connects to a FS serving fuchsia.io containing all Vulkan ICD manifests.
See
https://github.com/KhronosGroup/Vulkan-Loader/blob/master/loader/LoaderAndLayerInterface.md#icd-manifest-file-format
for a description of the manifest file format. Manifests will always
appear in this directory after the relevant device appears in
ConnectToDeviceFs().
Sourcepub fn connect_to_device_fs(&self, channel: Channel) -> Result<(), Error>
pub fn connect_to_device_fs(&self, channel: Channel) -> Result<(), Error>
Connects to a FS serving fuchsia.io containing all device nodes
potentially relevant to ICDs. Trusted devices are exposed only to trusted
loader clients (see [TrustedService]).
Sourcepub fn get_supported_features(
&self,
) -> QueryResponseFut<Features, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_supported_features( &self, ) -> QueryResponseFut<Features, DefaultFuchsiaResourceDialect> ⓘ
Returns the set of features the loader service supports.
Sourcepub fn get_vmex_resource(
&self,
) -> QueryResponseFut<LoaderGetVmexResourceResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_vmex_resource( &self, ) -> QueryResponseFut<LoaderGetVmexResourceResult, DefaultFuchsiaResourceDialect> ⓘ
Returns a VmexResource that can be used by Lavapipe to JIT-compile code in the client process, or an error.
Trait Implementations§
Source§impl Clone for LoaderProxy
impl Clone for LoaderProxy
Source§impl Debug for LoaderProxy
impl Debug for LoaderProxy
Source§impl LoaderProxyInterface for LoaderProxy
impl LoaderProxyInterface for LoaderProxy
type GetResponseFut = QueryResponseFut<Option<Vmo>>
type GetSupportedFeaturesResponseFut = QueryResponseFut<Features>
type GetVmexResourceResponseFut = QueryResponseFut<Result<Resource, GetVmexResourceError>>
fn get(&self, name: &str) -> Self::GetResponseFut
fn connect_to_manifest_fs( &self, options: ConnectToManifestOptions, channel: Channel, ) -> Result<(), Error>
fn connect_to_device_fs(&self, channel: Channel) -> Result<(), Error>
fn get_supported_features(&self) -> Self::GetSupportedFeaturesResponseFut
fn get_vmex_resource(&self) -> Self::GetVmexResourceResponseFut
Source§impl Proxy for LoaderProxy
impl Proxy for LoaderProxy
Source§type Protocol = LoaderMarker
type Protocol = LoaderMarker
Proxy controls.