pub struct DriverHostProxy { /* private fields */ }
Implementations§
Source§impl DriverHostProxy
impl DriverHostProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.driver.host/DriverHost.
Sourcepub fn take_event_stream(&self) -> DriverHostEventStream
pub fn take_event_stream(&self) -> DriverHostEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn start(
&self,
start_args: DriverStartArgs,
driver: ServerEnd<DriverMarker>,
) -> QueryResponseFut<DriverHostStartResult, DefaultFuchsiaResourceDialect>
pub fn start( &self, start_args: DriverStartArgs, driver: ServerEnd<DriverMarker>, ) -> QueryResponseFut<DriverHostStartResult, DefaultFuchsiaResourceDialect>
Start a driver within a driver host.
Sourcepub fn get_process_info(
&self,
) -> QueryResponseFut<DriverHostGetProcessInfoResult, DefaultFuchsiaResourceDialect>
pub fn get_process_info( &self, ) -> QueryResponseFut<DriverHostGetProcessInfoResult, DefaultFuchsiaResourceDialect>
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 Clone for DriverHostProxy
impl Clone for DriverHostProxy
Source§fn clone(&self) -> DriverHostProxy
fn clone(&self) -> DriverHostProxy
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 DriverHostProxy
impl Debug for DriverHostProxy
Source§impl DriverHostProxyInterface for DriverHostProxy
impl DriverHostProxyInterface for DriverHostProxy
type StartResponseFut = QueryResponseFut<Result<(), i32>>
type GetProcessInfoResponseFut = QueryResponseFut<Result<(u64, u64, Vec<ThreadInfo>, Vec<DispatcherInfo>), i32>>
fn start( &self, start_args: DriverStartArgs, driver: ServerEnd<DriverMarker>, ) -> Self::StartResponseFut
fn get_process_info(&self) -> Self::GetProcessInfoResponseFut
fn install_loader(&self, loader: ClientEnd<LoaderMarker>) -> Result<(), Error>
Source§impl Proxy for DriverHostProxy
impl Proxy for DriverHostProxy
Source§type Protocol = DriverHostMarker
type Protocol = DriverHostMarker
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
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for DriverHostProxy
impl !RefUnwindSafe for DriverHostProxy
impl Send for DriverHostProxy
impl Sync for DriverHostProxy
impl Unpin for DriverHostProxy
impl !UnwindSafe for DriverHostProxy
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