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,
driver_url: &str,
) -> QueryResponseFut<DriverRegistrarRegisterResult, DefaultFuchsiaResourceDialect>
pub fn register( &self, driver_url: &str, ) -> QueryResponseFut<DriverRegistrarRegisterResult, DefaultFuchsiaResourceDialect>
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 Proxy for DriverRegistrarProxy
impl Proxy for DriverRegistrarProxy
Source§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 Freeze for DriverRegistrarProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ProxyHasClient for Twhere
T: Proxy,
impl<T> ProxyHasClient for Twhere
T: Proxy,
§fn client(&self) -> Result<ZirconClient, Infallible>
fn client(&self) -> Result<ZirconClient, Infallible>
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.