[][src]Struct roost_client::Client

pub struct Client {
    app: App,
    dom_updater: DomUpdater,
}

Structure that is exported to JS along with its constructor

Fields

app: App

The client instance of Roost's application structure

dom_updater: DomUpdater

Updates the actual DOM based on the virtual dom

Methods

impl Client[src]

The included functions of a Roost client instance

pub fn new(initial_state: &str) -> Client

The constructor function that is exported to JS

pub fn render(&mut self)[src]

Updates the DOM based on the virtual dom generated by app.render()

Trait Implementations

impl From<Client> for JsValue[src]

impl WasmDescribe for Client[src]

impl FromWasmAbi for Client[src]

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for Client[src]

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl RefFromWasmAbi for Client[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, Client>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl OptionFromWasmAbi for Client[src]

impl OptionIntoWasmAbi for Client[src]

impl RefMutFromWasmAbi for Client[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, Client>

Same as RefFromWasmAbi::Anchor

Auto Trait Implementations

impl !Send for Client

impl !Sync for Client

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi