pub struct DriverRegistrarProxy { /* private fields */ }
Implementations§
source§impl DriverRegistrarProxy
impl DriverRegistrarProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.driver.registrar/DriverRegistrar.
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 protocol.
Panics
Panics if the event stream was already taken.
sourcepub fn register(
&self,
package_url: &str
) -> QueryResponseFut<DriverRegistrarRegisterResult>
pub fn register( &self, package_url: &str ) -> 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_PROTOCOL_NOT_SUPPORTED
if the ephermeral driver configenable_ephemeral_drivers
is not enabled.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 or it is missing a manifest or /pkg directory.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 or the url cannot be parsed.ZX_ERR_INVALID_ARGS
if the component decl cannot be parsed.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: &str) -> 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
§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 !RefUnwindSafe for DriverRegistrarProxy
impl Send for DriverRegistrarProxy
impl Sync for DriverRegistrarProxy
impl Unpin for DriverRegistrarProxy
impl !UnwindSafe for DriverRegistrarProxy
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