pub struct DriverIndexProxy { /* private fields */ }
Implementations§
source§impl DriverIndexProxy
impl DriverIndexProxy
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 DriverIndex protocol
Panics
Panics if the event stream was already taken.
sourcepub fn match_driver(
&self,
args: MatchDriverArgs
) -> QueryResponseFut<DriverIndexMatchDriverResult>
pub fn match_driver( &self, args: MatchDriverArgs ) -> QueryResponseFut<DriverIndexMatchDriverResult>
Match a set of device arguments to a driver package URL.
sourcepub fn wait_for_base_drivers(&self) -> QueryResponseFut<()>
pub fn wait_for_base_drivers(&self) -> QueryResponseFut<()>
This function will block until base drivers are loaded.
sourcepub fn match_drivers_v1(
&self,
args: MatchDriverArgs
) -> QueryResponseFut<DriverIndexMatchDriversV1Result>
pub fn match_drivers_v1( &self, args: MatchDriverArgs ) -> QueryResponseFut<DriverIndexMatchDriversV1Result>
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
) -> QueryResponseFut<DriverIndexAddCompositeNodeSpecResult>
pub fn add_composite_node_spec( &self, payload: CompositeNodeSpec ) -> QueryResponseFut<DriverIndexAddCompositeNodeSpecResult>
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.
Trait Implementations§
source§impl Clone for DriverIndexProxy
impl Clone for DriverIndexProxy
source§fn clone(&self) -> DriverIndexProxy
fn clone(&self) -> DriverIndexProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DriverIndexProxy
impl Debug for DriverIndexProxy
source§impl DriverIndexProxyInterface for DriverIndexProxy
impl DriverIndexProxyInterface for DriverIndexProxy
type MatchDriverResponseFut = QueryResponseFut<Result<MatchedDriver, i32>>
fn match_driver(&self, args: MatchDriverArgs) -> Self::MatchDriverResponseFut
type WaitForBaseDriversResponseFut = QueryResponseFut<()>
fn wait_for_base_drivers(&self) -> Self::WaitForBaseDriversResponseFut
type MatchDriversV1ResponseFut = QueryResponseFut<Result<Vec<MatchedDriver, Global>, i32>>
fn match_drivers_v1( &self, args: MatchDriverArgs ) -> Self::MatchDriversV1ResponseFut
type AddCompositeNodeSpecResponseFut = QueryResponseFut<Result<(MatchedCompositeInfo, Vec<String, Global>), i32>>
fn add_composite_node_spec( &self, payload: CompositeNodeSpec ) -> Self::AddCompositeNodeSpecResponseFut
source§impl Proxy for DriverIndexProxy
impl Proxy for DriverIndexProxy
§type Protocol = DriverIndexMarker
type Protocol = DriverIndexMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more