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_SUPPORTEDif the ephermeral driver configenable_ephemeral_driversis not enabled.ZX_ERR_ACCESS_DENIEDif the device does not have permissions to fetch the package.ZX_ERR_ALREADY_EXISTSif the driver component being registered already exists in the boot or base drivers list.ZX_ERR_NOT_FOUNDif the package does not exist or it is missing a manifest or /pkg directory.ZX_ERR_IOif there is some other unspecified error during I/O.ZX_ERR_ADDRESS_UNREACHABLEif the package resolver does not know about the repo or the url cannot be parsed.ZX_ERR_INVALID_ARGSif the component decl cannot be parsed.ZX_ERR_NO_SPACEif the device is out of space.ZX_ERR_UNAVAILABLEif the package resolver could not be reached.ZX_ERR_INTERNALif 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 duplicate 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, driver_url: &str) -> Self::RegisterResponseFut
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
Source§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
Source§fn on_closed(&self) -> OnSignals<'_, Unowned<'_, NullableHandle>>
fn on_closed(&self) -> OnSignals<'_, Unowned<'_, NullableHandle>>
Returns a future that completes when the proxy receives the
PEER_CLOSED signal.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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.