Enum flo_http_ui::Update [] [src]

pub enum Update {
    MissingSession,
    NewSession(String),
    WebsocketPort(u32),
    NewUserInterfaceHtml(StringValueVec<ViewModelUpdate>),
    UpdateViewModel(Vec<ViewModelUpdate>),
    UpdateHtml(Vec<HtmlDiff>),
    UpdateCanvas(Vec<CanvasUpdate>),
}

Represents an instruction to perform an update in the web interface

Events and other requests to the HTTP interface can return lists of updates that should be performed in response.

Variants

There is no session ID or the session is unknown

A new session has been created, and this is its ID

The server supports Flo websockets on the specified port

Supplies a new user interface as HTML, alongside the corresponding UI control data and view model.

Specifies that the viewmodel should be updated

Specifies how the HTML should be updated

Specifies that a canvas should be updated

Trait Implementations

impl Clone for Update
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Update
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Update
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Update

impl Sync for Update