[][src]Trait assemble_app::View

pub trait View: Sync + Send {
    pub fn start(params: HashMap<String, String>) -> Result<Self>
    where
        Self: Sized
;
pub fn render(&self) -> Result<Html>; pub fn event(&mut self, msg: &str, body: &[u8]) -> Result<()> { ... }
pub fn message(&mut self, topic: &str, msg: &str, body: &[u8]) -> Result<()> { ... } }

Required methods

pub fn start(params: HashMap<String, String>) -> Result<Self> where
    Self: Sized
[src]

pub fn render(&self) -> Result<Html>[src]

Loading content...

Provided methods

pub fn event(&mut self, msg: &str, body: &[u8]) -> Result<()>[src]

pub fn message(&mut self, topic: &str, msg: &str, body: &[u8]) -> Result<()>[src]

Loading content...

Implementors

Loading content...