pub struct DriverRegistrarSynchronousProxy { /* private fields */ }Implementations§
Source§impl DriverRegistrarSynchronousProxy
impl DriverRegistrarSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DriverRegistrarEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DriverRegistrarEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn register(
&self,
driver_url: &str,
___deadline: MonotonicInstant,
) -> Result<DriverRegistrarRegisterResult, Error>
pub fn register( &self, driver_url: &str, ___deadline: MonotonicInstant, ) -> Result<DriverRegistrarRegisterResult, Error>
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 From<Channel> for DriverRegistrarSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for DriverRegistrarSynchronousProxy
Available on Fuchsia only.
Source§impl From<DriverRegistrarSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<DriverRegistrarSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: DriverRegistrarSynchronousProxy) -> Self
fn from(value: DriverRegistrarSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for DriverRegistrarSynchronousProxy
Available on Fuchsia only.
impl FromClient for DriverRegistrarSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = DriverRegistrarMarker
type Protocol = DriverRegistrarMarker
The protocol.
Source§fn from_client(value: ClientEnd<DriverRegistrarMarker>) -> Self
fn from_client(value: ClientEnd<DriverRegistrarMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for DriverRegistrarSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for DriverRegistrarSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = DriverRegistrarProxy
type Proxy = DriverRegistrarProxy
The async proxy for the same protocol.
Source§type Protocol = DriverRegistrarMarker
type Protocol = DriverRegistrarMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for DriverRegistrarSynchronousProxy
impl RefUnwindSafe for DriverRegistrarSynchronousProxy
impl Send for DriverRegistrarSynchronousProxy
impl Sync for DriverRegistrarSynchronousProxy
impl Unpin for DriverRegistrarSynchronousProxy
impl UnwindSafe for DriverRegistrarSynchronousProxy
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