pub enum DriverRegistrarRequest {
Register {
driver_url: String,
responder: DriverRegistrarRegisterResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: DriverRegistrarControlHandle,
method_type: MethodType,
},
}Expand description
Protocol for registering ephemeral driver packages.
Variants§
Register
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.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: DriverRegistrarControlHandle§
method_type: MethodTypeImplementations§
Source§impl DriverRegistrarRequest
impl DriverRegistrarRequest
pub fn into_register(self) -> Option<(String, DriverRegistrarRegisterResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DriverRegistrarRequest
impl !RefUnwindSafe for DriverRegistrarRequest
impl Send for DriverRegistrarRequest
impl Sync for DriverRegistrarRequest
impl Unpin for DriverRegistrarRequest
impl !UnwindSafe for DriverRegistrarRequest
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