pub struct DriverRegistrarProxy { /* private fields */ }
Implementations§
source§impl DriverRegistrarProxy
impl DriverRegistrarProxy
sourcepub fn take_event_stream(&self) -> DriverRegistrarEventStream
pub fn take_event_stream(&self) -> DriverRegistrarEventStream
Get a Stream of events from the remote end of the DriverRegistrar protocol
Panics
Panics if the event stream was already taken.
sourcepub fn register(
&self,
package_url: &mut PackageUrl
) -> QueryResponseFut<DriverRegistrarRegisterResult>
pub fn register( &self, package_url: &mut PackageUrl ) -> QueryResponseFut<DriverRegistrarRegisterResult>
Informs the driver framework of an ephemeral driver. The metadata will be cached by the driver index to be used in future matching operations.
- error a zx_status value indicating failure. One of the following:
ZX_ERR_ACCESS_DENIED
if the device does not have permissions to fetch the package.ZX_ERR_ALREADY_EXISTS
if the driver component being registered already exists in the boot or base drivers list.ZX_ERR_NOT_FOUND
if the package does not exist.ZX_ERR_IO
if there is some other unspecified error during I/O.ZX_ERR_ADDRESS_UNREACHABLE
if the package resolver does not know about the repo.ZX_ERR_NO_SPACE
if the device is out of space.ZX_ERR_UNAVAILABLE
if the package resolver could not be reached.ZX_ERR_INTERNAL
if an unspecified error was encountered.
Trait Implementations§
source§impl Clone for DriverRegistrarProxy
impl Clone for DriverRegistrarProxy
source§fn clone(&self) -> DriverRegistrarProxy
fn clone(&self) -> DriverRegistrarProxy
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 DriverRegistrarProxy
impl Debug for DriverRegistrarProxy
source§impl DriverRegistrarProxyInterface for DriverRegistrarProxy
impl DriverRegistrarProxyInterface for DriverRegistrarProxy
type RegisterResponseFut = QueryResponseFut<Result<(), i32>>
fn register(&self, package_url: &mut PackageUrl) -> Self::RegisterResponseFut
source§impl Proxy for DriverRegistrarProxy
impl Proxy for DriverRegistrarProxy
§type Protocol = DriverRegistrarMarker
type Protocol = DriverRegistrarMarker
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