pub trait DriverIndexProxyInterface: Send + Sync {
type MatchDriverResponseFut: Future<Output = Result<DriverIndexMatchDriverResult, Error>> + Send;
type AddCompositeNodeSpecResponseFut: Future<Output = Result<DriverIndexAddCompositeNodeSpecResult, Error>> + Send;
type RebindCompositeNodeSpecResponseFut: Future<Output = Result<DriverIndexRebindCompositeNodeSpecResult, Error>> + Send;
type MatchPendingNodeResponseFut: Future<Output = Result<DriverIndexMatchPendingNodeResult, Error>> + Send;
// Required methods
fn match_driver(
&self,
args: &MatchDriverArgs,
) -> Self::MatchDriverResponseFut;
fn add_composite_node_spec(
&self,
payload: &CompositeNodeSpec,
) -> Self::AddCompositeNodeSpecResponseFut;
fn rebind_composite_node_spec(
&self,
spec: &str,
driver_url_suffix: Option<&str>,
) -> Self::RebindCompositeNodeSpecResponseFut;
fn match_pending_node(
&self,
dependencies: &[ParentSpec2],
) -> Self::MatchPendingNodeResponseFut;
fn set_notifier(
&self,
notifier: ClientEnd<DriverNotifierMarker>,
) -> Result<(), Error>;
}Required Associated Types§
type MatchDriverResponseFut: Future<Output = Result<DriverIndexMatchDriverResult, Error>> + Send
type AddCompositeNodeSpecResponseFut: Future<Output = Result<DriverIndexAddCompositeNodeSpecResult, Error>> + Send
type RebindCompositeNodeSpecResponseFut: Future<Output = Result<DriverIndexRebindCompositeNodeSpecResult, Error>> + Send
type MatchPendingNodeResponseFut: Future<Output = Result<DriverIndexMatchPendingNodeResult, Error>> + Send
Required Methods§
fn match_driver(&self, args: &MatchDriverArgs) -> Self::MatchDriverResponseFut
fn add_composite_node_spec( &self, payload: &CompositeNodeSpec, ) -> Self::AddCompositeNodeSpecResponseFut
fn rebind_composite_node_spec( &self, spec: &str, driver_url_suffix: Option<&str>, ) -> Self::RebindCompositeNodeSpecResponseFut
fn match_pending_node( &self, dependencies: &[ParentSpec2], ) -> Self::MatchPendingNodeResponseFut
fn set_notifier( &self, notifier: ClientEnd<DriverNotifierMarker>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".