[][src]Trait uni_components::ui_page::UiPage

pub trait UiPage: UiPageData {
    type Data: 'static + DeserializeOwned + Serialize;
    pub fn encode_data(&self, data: &Self::Data) -> Result<String, CallError> { ... }
pub fn extract_launch_parameter(
        &self,
        s: &str
    ) -> Result<Self::Data, CallError> { ... } }

Represents independent UI element (like Window or Activity or WebPage).

The best way you can use it is define_ui_page! macros.

Associated Types

Loading content...

Provided methods

pub fn encode_data(&self, data: &Self::Data) -> Result<String, CallError>[src]

pub fn extract_launch_parameter(&self, s: &str) -> Result<Self::Data, CallError>[src]

Loading content...

Implementations

impl<T> dyn UiPage<Data = T> where
    T: 'static + DeserializeOwned + Serialize
[src]

pub fn get_launch_parameter(&self) -> Result<T, CallError>[src]

pub fn open(&self) -> Result<(), CallError>[src]

pub fn open_with_data(&self, data: &T) -> Result<(), CallError>[src]

Implementors

Loading content...