pub enum ProviderRequest {
AddDevice {
payload: ProviderAddDeviceRequest,
responder: ProviderAddDeviceResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ProviderControlHandle,
method_type: MethodType,
},
}
Expand description
Use the Provider
interface to manually add devices that do not use the devfs
mechanism. (Devices that use devfs are automatically added, upon detection.)
Variants§
AddDevice
_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: ProviderControlHandle
§
method_type: MethodType
Implementations§
Source§impl ProviderRequest
impl ProviderRequest
pub fn into_add_device( self, ) -> Option<(ProviderAddDeviceRequest, ProviderAddDeviceResponder)>
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 ProviderRequest
impl !RefUnwindSafe for ProviderRequest
impl Send for ProviderRequest
impl Sync for ProviderRequest
impl Unpin for ProviderRequest
impl !UnwindSafe for ProviderRequest
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