pub struct DriverHostSynchronousProxy { /* private fields */ }
Implementations§
Source§impl DriverHostSynchronousProxy
impl DriverHostSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DriverHostEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DriverHostEvent, 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 start(
&self,
start_args: DriverStartArgs,
driver: ServerEnd<DriverMarker>,
___deadline: MonotonicInstant,
) -> Result<DriverHostStartResult, Error>
pub fn start( &self, start_args: DriverStartArgs, driver: ServerEnd<DriverMarker>, ___deadline: MonotonicInstant, ) -> Result<DriverHostStartResult, Error>
Start a driver within a driver host.
Sourcepub fn get_process_info(
&self,
___deadline: MonotonicInstant,
) -> Result<DriverHostGetProcessInfoResult, Error>
pub fn get_process_info( &self, ___deadline: MonotonicInstant, ) -> Result<DriverHostGetProcessInfoResult, Error>
Returns the job and process KOIDs of the driver host.
Sourcepub fn install_loader(
&self,
loader: ClientEnd<LoaderMarker>,
) -> Result<(), Error>
pub fn install_loader( &self, loader: ClientEnd<LoaderMarker>, ) -> Result<(), Error>
Provides a loader service which should be installed via
dl_set_loader_service
.
Trait Implementations§
Source§impl Debug for DriverHostSynchronousProxy
impl Debug for DriverHostSynchronousProxy
Source§impl SynchronousProxy for DriverHostSynchronousProxy
impl SynchronousProxy for DriverHostSynchronousProxy
Source§type Proxy = DriverHostProxy
type Proxy = DriverHostProxy
The async proxy for the same protocol.
Source§type Protocol = DriverHostMarker
type Protocol = DriverHostMarker
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 DriverHostSynchronousProxy
impl RefUnwindSafe for DriverHostSynchronousProxy
impl Send for DriverHostSynchronousProxy
impl Sync for DriverHostSynchronousProxy
impl Unpin for DriverHostSynchronousProxy
impl UnwindSafe for DriverHostSynchronousProxy
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