pub struct DriverIndexSynchronousProxy { /* private fields */ }
Implementations§
source§impl DriverIndexSynchronousProxy
impl DriverIndexSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<DriverIndexEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<DriverIndexEvent, 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 match_driver(
&self,
args: MatchDriverArgs,
___deadline: Time
) -> Result<DriverIndexMatchDriverResult, Error>
pub fn match_driver( &self, args: MatchDriverArgs, ___deadline: Time ) -> Result<DriverIndexMatchDriverResult, Error>
Match a set of device arguments to a driver package URL.
sourcepub fn wait_for_base_drivers(&self, ___deadline: Time) -> Result<(), Error>
pub fn wait_for_base_drivers(&self, ___deadline: Time) -> Result<(), Error>
This function will block until base drivers are loaded.
sourcepub fn match_drivers_v1(
&self,
args: MatchDriverArgs,
___deadline: Time
) -> Result<DriverIndexMatchDriversV1Result, Error>
pub fn match_drivers_v1( &self, args: MatchDriverArgs, ___deadline: Time ) -> Result<DriverIndexMatchDriversV1Result, Error>
This function returns a vector of drivers that match a device. This should only be used by DFv1 and should be removed. If more than MAX drivers match, only MAX drivers will be returned.
sourcepub fn add_composite_node_spec(
&self,
payload: CompositeNodeSpec,
___deadline: Time
) -> Result<DriverIndexAddCompositeNodeSpecResult, Error>
pub fn add_composite_node_spec( &self, payload: CompositeNodeSpec, ___deadline: Time ) -> Result<DriverIndexAddCompositeNodeSpecResult, Error>
Adds a composite node spec to the driver index. The driver index stores the composite node spec and maps it by the name. The stored composite node specs are included in the driver matching process.