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: MonotonicInstant,
) -> Result<DriverIndexEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<DriverIndexMatchDriverResult, Error>
pub fn match_driver( &self, args: &MatchDriverArgs, ___deadline: MonotonicInstant, ) -> Result<DriverIndexMatchDriverResult, Error>
Match a set of device arguments to a driver package URL.
Sourcepub fn add_composite_node_spec(
&self,
payload: &CompositeNodeSpec,
___deadline: MonotonicInstant,
) -> Result<DriverIndexAddCompositeNodeSpecResult, Error>
pub fn add_composite_node_spec( &self, payload: &CompositeNodeSpec, ___deadline: MonotonicInstant, ) -> 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.
Sourcepub fn rebind_composite_node_spec(
&self,
spec: &str,
driver_url_suffix: Option<&str>,
___deadline: MonotonicInstant,
) -> Result<DriverIndexRebindCompositeNodeSpecResult, Error>
pub fn rebind_composite_node_spec( &self, spec: &str, driver_url_suffix: Option<&str>, ___deadline: MonotonicInstant, ) -> Result<DriverIndexRebindCompositeNodeSpecResult, Error>
Rematch the composite node spec to a composite driver. If a driver url suffix is provided, the composite node spec will only be matched against drivers with URLS that end with the suffix.
Sourcepub fn set_notifier(
&self,
notifier: ClientEnd<DriverNotifierMarker>,
) -> Result<(), Error>
pub fn set_notifier( &self, notifier: ClientEnd<DriverNotifierMarker>, ) -> Result<(), Error>
Sets the DriverNotifier which is used for reverse communication.
Trait Implementations§
Source§impl Debug for DriverIndexSynchronousProxy
impl Debug for DriverIndexSynchronousProxy
Source§impl SynchronousProxy for DriverIndexSynchronousProxy
impl SynchronousProxy for DriverIndexSynchronousProxy
Source§type Proxy = DriverIndexProxy
type Proxy = DriverIndexProxy
The async proxy for the same protocol.
Source§type Protocol = DriverIndexMarker
type Protocol = DriverIndexMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for DriverIndexSynchronousProxy
impl RefUnwindSafe for DriverIndexSynchronousProxy
impl Send for DriverIndexSynchronousProxy
impl Sync for DriverIndexSynchronousProxy
impl Unpin for DriverIndexSynchronousProxy
impl UnwindSafe for DriverIndexSynchronousProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more