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 start_loaded_driver(
&self,
start_args: DriverStartArgs,
dynamic_linking_abi: u64,
driver: ServerEnd<DriverMarker>,
___deadline: MonotonicInstant,
) -> Result<DriverHostStartLoadedDriverResult, Error>
pub fn start_loaded_driver( &self, start_args: DriverStartArgs, dynamic_linking_abi: u64, driver: ServerEnd<DriverMarker>, ___deadline: MonotonicInstant, ) -> Result<DriverHostStartLoadedDriverResult, Error>
Start a driver that’s been loaded via an out of process dynamic linker.
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
.
Sourcepub fn find_driver_crash_info_by_thread_koid(
&self,
thread_koid: u64,
___deadline: MonotonicInstant,
) -> Result<DriverHostFindDriverCrashInfoByThreadKoidResult, Error>
pub fn find_driver_crash_info_by_thread_koid( &self, thread_koid: u64, ___deadline: MonotonicInstant, ) -> Result<DriverHostFindDriverCrashInfoByThreadKoidResult, Error>
Returns the driver crash information if the thread specified by |thread_koid| exists in this driver host and it has ran into an exception. Otherwise returns ZX_ERR_NOT_FOUND.
Trait Implementations§
Source§impl Debug for DriverHostSynchronousProxy
impl Debug for DriverHostSynchronousProxy
Source§impl From<Channel> for DriverHostSynchronousProxy
impl From<Channel> for DriverHostSynchronousProxy
Source§impl From<DriverHostSynchronousProxy> for Handle
impl From<DriverHostSynchronousProxy> for Handle
Source§fn from(value: DriverHostSynchronousProxy) -> Self
fn from(value: DriverHostSynchronousProxy) -> Self
Converts to this type from the input type.
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