[][src]Trait assemble_app::View

pub trait View: Sync + Send {
    pub fn start(
        is_connected: bool,
        params: HashMap<String, String>
    ) -> Result<Self>
    where
        Self: Sized
;
pub fn render(&self) -> Result<Html>; pub fn local_event(&mut self, _msg: &str, _body: &[u8]) -> Result<()> { ... }
pub fn pubsub_event(
        &mut self,
        _topic: &str,
        _msg: &str,
        _body: &[u8]
    ) -> Result<()> { ... }
pub fn presence_event(
        &mut self,
        _topic: &str,
        _diff: PresenceDiffRaw
    ) -> Result<()> { ... } }

Required methods

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

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

Loading content...

Provided methods

pub fn local_event(&mut self, _msg: &str, _body: &[u8]) -> Result<()>[src]

pub fn pubsub_event(
    &mut self,
    _topic: &str,
    _msg: &str,
    _body: &[u8]
) -> Result<()>
[src]

pub fn presence_event(
    &mut self,
    _topic: &str,
    _diff: PresenceDiffRaw
) -> Result<()>
[src]

Loading content...

Implementors

Loading content...