pub enum FacadeProviderRequest {
GetFacades {
iterator: ServerEnd<FacadeIteratorMarker>,
control_handle: FacadeProviderControlHandle,
},
Execute {
facade: String,
command: String,
params_blob: Vmo,
responder: FacadeProviderExecuteResponder,
},
Cleanup {
responder: FacadeProviderCleanupResponder,
},
Print {
responder: FacadeProviderPrintResponder,
},
}
Expand description
Implemented by a backend component hosting one or more facades. A facade must only be hosted by
a signel FacadeProvider
instance.
NOTE: The current implementation uses ComponentsV1 and only supports a single FacadeProvider
instance. This is intended to change and may result in changes to the protocol.
Variants§
GetFacades
Connect to a FacadeIterator
to obtain the list of facades hosted by this FacadeProvider
.
Execute
Executes ‘command’ on ‘facade’. Returns an optional result JSON blob and error string.
Cleanup
Cleans up any resources and transient state associated with SL4F facades hosted by this
FacadeProvider
. Returns on completion.
Fields
§
responder: FacadeProviderCleanupResponder
Prints the state of all facades hosted by this FacadeProvider
. Returns on completion.
Fields
§
responder: FacadeProviderPrintResponder
Implementations§
Source§impl FacadeProviderRequest
impl FacadeProviderRequest
pub fn into_get_facades( self, ) -> Option<(ServerEnd<FacadeIteratorMarker>, FacadeProviderControlHandle)>
pub fn into_execute( self, ) -> Option<(String, String, Vmo, FacadeProviderExecuteResponder)>
pub fn into_cleanup(self) -> Option<FacadeProviderCleanupResponder>
pub fn into_print(self) -> Option<FacadeProviderPrintResponder>
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 FacadeProviderRequest
impl !RefUnwindSafe for FacadeProviderRequest
impl Send for FacadeProviderRequest
impl Sync for FacadeProviderRequest
impl Unpin for FacadeProviderRequest
impl !UnwindSafe for FacadeProviderRequest
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