pub struct VirtualConsoleAppAssistant { /* private fields */ }
Implementations§
Source§impl VirtualConsoleAppAssistant
impl VirtualConsoleAppAssistant
pub fn new( app_sender: &AppSender, args: VirtualConsoleArgs, read_only_debuglog: Option<DebugLog>, ) -> Result<VirtualConsoleAppAssistant, Error>
Trait Implementations§
Source§impl AppAssistant for VirtualConsoleAppAssistant
impl AppAssistant for VirtualConsoleAppAssistant
Source§fn setup(&mut self) -> Result<(), Error>
fn setup(&mut self) -> Result<(), Error>
This method is responsible for setting up the AppAssistant implementation.
It’s not clear if this is going to so useful, as anything that isn’t
initialized in the creation of the structure implementing AppAssistant
is going to have to be represented as an
Option
, which is awkward.Source§fn create_view_assistant(
&mut self,
view_key: ViewKey,
) -> Result<ViewAssistantPtr, Error>
fn create_view_assistant( &mut self, view_key: ViewKey, ) -> Result<ViewAssistantPtr, Error>
Called when the Fuchsia view system requests that a view be created, or once at startup
when running without Scenic.
Source§fn outgoing_services_names(&self) -> Vec<&'static str>
fn outgoing_services_names(&self) -> Vec<&'static str>
Return the list of names of services this app wants to provide
Source§fn handle_service_connection_request(
&mut self,
_service_name: &str,
channel: Channel,
) -> Result<(), Error>
fn handle_service_connection_request( &mut self, _service_name: &str, channel: Channel, ) -> Result<(), Error>
Handle a request to connect to a service provided by this app
Source§fn filter_config(&mut self, config: &mut Config)
fn filter_config(&mut self, config: &mut Config)
Filter Carnelian configuration at runtime, if needed.
Source§fn handle_message(&mut self, message: Message)
fn handle_message(&mut self, message: Message)
This method is called when
App::queue_message
is called with Application
as target.§fn create_view_assistant_with_parameters(
&mut self,
params: ViewCreationParameters,
) -> Result<Box<dyn ViewAssistant>, Error>
fn create_view_assistant_with_parameters( &mut self, params: ViewCreationParameters, ) -> Result<Box<dyn ViewAssistant>, Error>
Called when the Fuchsia view system requests that a view be created. Provides
parameters to view creation that include anything provided the the view creation
requestor and an AppSender.
Auto Trait Implementations§
impl Freeze for VirtualConsoleAppAssistant
impl !RefUnwindSafe for VirtualConsoleAppAssistant
impl !Send for VirtualConsoleAppAssistant
impl !Sync for VirtualConsoleAppAssistant
impl Unpin for VirtualConsoleAppAssistant
impl !UnwindSafe for VirtualConsoleAppAssistant
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