pub struct DriverIndexProxy { /* private fields */ }
Implementations§
source§impl DriverIndexProxy
impl DriverIndexProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.driver.development/DriverIndex.
sourcepub fn take_event_stream(&self) -> DriverIndexEventStream
pub fn take_event_stream(&self) -> DriverIndexEventStream
Get a Stream of events from the remote end of the protocol.
Panics
Panics if the event stream was already taken.
sourcepub fn get_driver_info(
&self,
driver_filter: &[String],
iterator: ServerEnd<DriverInfoIteratorMarker>
) -> Result<(), Error>
pub fn get_driver_info( &self, driver_filter: &[String], iterator: ServerEnd<DriverInfoIteratorMarker> ) -> Result<(), Error>
Returns a list of all drivers that are known to the system. If a |driver_filter| is provided, the returned list will be filtered to only include drivers specified in the filter.
|iterator| is closed with following epitaphs on error: ZX_ERR_NOT_FOUND indicates that there is no driver matching the given path for at least one driver in |driver_filter|. ZX_ERR_BUFFER_TOO_SMALL indicates that the driver’s bind program is longer than the maximum number of instructions (BIND_PROGRAM_INSTRUCTIONS_MAX).
sourcepub fn get_composite_node_specs(
&self,
name_filter: Option<&str>,
iterator: ServerEnd<CompositeNodeSpecIteratorMarker>
) -> Result<(), Error>
pub fn get_composite_node_specs( &self, name_filter: Option<&str>, iterator: ServerEnd<CompositeNodeSpecIteratorMarker> ) -> Result<(), Error>
Returns a list of all composite node specs that are known to the system. If a |name_filter| is provided, the returned list will only include 1 spec, the one with that exact name.
|iterator| is closed with following epitaphs on error: ZX_ERR_NOT_FOUND indicates that there are no specs or if a |name_filter| is provided, that there are no specs with that name.
sourcepub fn disable_match_with_driver_url(
&self,
driver_url: &PackageUrl
) -> QueryResponseFut<()>
pub fn disable_match_with_driver_url( &self, driver_url: &PackageUrl ) -> QueryResponseFut<()>
Disable the given driver url from being returned as a match. When this is called, subsequent |fuchsia.driver.index.DriverIndex::MatchDriver| requests will not consider the driver with the given url. This can be used for all driver package types. The given driver url does not have to match existing drivers, it will apply even if the driver appears afterwards, for example through a |fuchsia.driver.registrar.Register| operation.
sourcepub fn re_enable_match_with_driver_url(
&self,
driver_url: &PackageUrl
) -> QueryResponseFut<DriverIndexReEnableMatchWithDriverUrlResult>
pub fn re_enable_match_with_driver_url( &self, driver_url: &PackageUrl ) -> QueryResponseFut<DriverIndexReEnableMatchWithDriverUrlResult>
Re-enables a given driver url, that was previously disabled with
|DisableMatchWithDriverUrl|, for matching again. This must be called for driver urls that
were previously disabled.
Will return ZX_ERR_NOT_FOUND if the driver_url
was not previously disabled.
Trait Implementations§
source§impl Clone for DriverIndexProxy
impl Clone for DriverIndexProxy
source§fn clone(&self) -> DriverIndexProxy
fn clone(&self) -> DriverIndexProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DriverIndexProxy
impl Debug for DriverIndexProxy
source§impl DriverIndexProxyInterface for DriverIndexProxy
impl DriverIndexProxyInterface for DriverIndexProxy
fn get_driver_info( &self, driver_filter: &[String], iterator: ServerEnd<DriverInfoIteratorMarker> ) -> Result<(), Error>
fn get_composite_node_specs( &self, name_filter: Option<&str>, iterator: ServerEnd<CompositeNodeSpecIteratorMarker> ) -> Result<(), Error>
type DisableMatchWithDriverUrlResponseFut = QueryResponseFut<()>
fn disable_match_with_driver_url( &self, driver_url: &PackageUrl ) -> Self::DisableMatchWithDriverUrlResponseFut
type ReEnableMatchWithDriverUrlResponseFut = QueryResponseFut<Result<(), i32>>
fn re_enable_match_with_driver_url( &self, driver_url: &PackageUrl ) -> Self::ReEnableMatchWithDriverUrlResponseFut
source§impl Proxy for DriverIndexProxy
impl Proxy for DriverIndexProxy
§type Protocol = DriverIndexMarker
type Protocol = DriverIndexMarker
Proxy
controls.