pub enum ResourceControllerRequest {
Remove {
control_handle: ResourceControllerControlHandle,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: ResourceControllerControlHandle,
method_type: MethodType,
},
}Expand description
Protocol through which the resource’s provider can use to control it.
Variants§
Remove
Removes the resource.
Fields
§
control_handle: ResourceControllerControlHandle#[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: ResourceControllerControlHandle§
method_type: MethodTypeImplementations§
Source§impl ResourceControllerRequest
impl ResourceControllerRequest
pub fn into_remove(self) -> Option<ResourceControllerControlHandle>
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 ResourceControllerRequest
impl !RefUnwindSafe for ResourceControllerRequest
impl Send for ResourceControllerRequest
impl Sync for ResourceControllerRequest
impl Unpin for ResourceControllerRequest
impl UnsafeUnpin for ResourceControllerRequest
impl !UnwindSafe for ResourceControllerRequest
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