Enum flo_http_ui::Update
[−]
[src]
pub enum Update { MissingSession, NewSession(String), WebsocketPort(u32), NewUserInterfaceHtml(String, Value, Vec<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
MissingSession
There is no session ID or the session is unknown
NewSession(String)
A new session has been created, and this is its ID
WebsocketPort(u32)
The server supports Flo websockets on the specified port
NewUserInterfaceHtml(String, Value, Vec<ViewModelUpdate>)
Supplies a new user interface as HTML, alongside the corresponding UI control data and view model.
UpdateViewModel(Vec<ViewModelUpdate>)
Specifies that the viewmodel should be updated
UpdateHtml(Vec<HtmlDiff>)
Specifies how the HTML should be updated
UpdateCanvas(Vec<CanvasUpdate>)
Specifies that a canvas should be updated
Trait Implementations
impl Clone for Update
[src]
fn clone(&self) -> Update
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Update
[src]
fn eq(&self, __arg_0: &Update) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Update) -> bool
[src]
This method tests for !=
.