pub enum ToUi {
Show 24 variants
Loading,
Open {
level: Level,
target: ResourceRef,
tree: Node,
front: Option<Front>,
capture_protected: bool,
},
Close,
Front {
front: Front,
shows: Option<(u64, ResourceRef)>,
},
Patch {
level: Level,
patches: Vec<Patch>,
},
Bound {
level: Level,
key: String,
value: Value,
acked: u64,
},
Rows {
level: Level,
list: String,
len: u32,
start: u32,
keys: Vec<String>,
rows: Vec<Node>,
},
RowsChanged {
level: Level,
list: String,
len: u32,
changes: Vec<RowChange>,
},
Spaces {
level: Level,
keys: Vec<String>,
},
Notice {
words: Words,
kind: NoticeKind,
undo: bool,
},
Ask(Option<Ask>),
Form(Option<Box<Form>>),
Activate,
ShowRun {
run: String,
},
Took {
fired: u64,
},
Actions(Vec<u8>),
Speak(String),
Kept(bool),
Heard(Vec<u8>),
History(bool),
Page {
request_id: u32,
request: Vec<u8>,
},
Outputs(Vec<u8>),
CallPictures {
shown: Vec<CallShown>,
pictures: Vec<CallPicture>,
},
Focus {
key: Option<String>,
},
}Expand description
What an app sends its window.
Variants§
Loading
The window shows the platform’s loading state until a level opens.
Open
A level opened (or opened anew): its view’s tree, without the rows of its virtual lists,
and the resource it shows. A detail opening with front comes to the front of a narrow
window. capture_protected says the view declares protect capture: wherever it is
shown, a capture or a stream leaves it out.
Close
The detail level closed.
Front
A level’s page comes to the front of a narrow window. When the window draws the item its
own view shows in place (a tree beside what it shows), shows is that item and the press
that showed it: what the person types after that press belongs to it.
Patch
The runtime’s patches to a level’s tree.
Bound
What the bound control key shows now. acked is the last of its splices the app took:
the host keeps what the person typed after it.
Rows
Rows of the virtual list list (its key in the level): how many it has, the keys of
those from start on, and those of them rendered.
RowsChanged
What changed of a virtual list’s rows, and how many it has now.
Spaces
The view calls of a level that read the space layout gives them, by the keys of their
fragments: what the window measures, so each runs again with the size it was given,
live, and no view that reads none costs a measure. The root view’s own is the level’s,
which the window tells anyway. Sent when the set changes.
Notice
Ask(Option<Ask>)
The Ask bar, or none.
Form(Option<Box<Form>>)
The form of an action waiting for its arguments, or none: it closed (submitted, cancelled, or the action ran).
Activate
Someone asked to see the window (“Show this window”): it comes forward.
ShowRun
A change mark was activated: show what the task run run (its group,
runtime_collab::task_run_group) did, where the system keeps its log.
Took
The app ran the first fired presses the window sent (ToApp::Fire), and sent what
they opened before this. What the person typed after a press goes to the app once it
ran it, into the field focused then.
Actions(Vec<u8>)
What changed of the actions the app offers the person at this window, as their command
palette lists them: the change of its published surface the broker takes (a
SurfaceDelta, JSON), so each action’s description crosses once per resource type
and a resource as its address and what differs for it. Bytes, not a byte at a time: the
first one holds every shape.
Speak(String)
The language the window reads in now (de-DE): the person chose another in Settings while
it is open. Its own chrome relabels in it, as the app’s words the app sends do.
Kept(bool)
Whether the app holds changes of the person’s that the workspace has not taken yet: the
window marks them unsaved and offers to try again (ToApp::SaveAgain) until it has.
Heard(Vec<u8>)
What the app’s connection heard of the people at the app, which the window shows as a window with a connection of its own does: the member list, a step of an agent’s action. Carried as the JSON the window’s toolkit reads it as.
History(bool)
Whether the window shows the history of what it shows now (ToApp::History): its bar’s
History control stands open while it does. Back, or opening something else, closes it.
Page
Ask the window’s page engine to do something, as the app’s page actions do: request is
the page’s own request, encoded (tilo_webview’s page protocol), which the window runs
on the engine it holds for this window and answers with ToApp::PageAnswer.
Outputs(Vec<u8>)
The places a playback plays, as the app’s outputs Collection stands now: JSON, one item
per place with the Collection item’s id and the Output type’s fields. The window process
plays them on the computer’s sound devices and casts to a receiver (tilo-media’s
playback bridge); it is sent only when the Collection changed.
CallPictures
The pictures of the system’s call the window shows: every picture the app’s view shows now
as a tile (shown, so a tile whose person stopped showing forgets its last frame), and the
pictures the call delivered since the last message. The window decodes them where it draws
(ui::live_pictures), which is what a call’s tile reads.
Focus
Where the keyboard goes, as the app asks: Some(key) moves it to the control with that
test id, None ends its place in an editor (the blur() a view applies), as closing the
editor does. The window answers through the same focus request a widget builds with.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToUi
impl<'de> Deserialize<'de> for ToUi
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for ToUi
Auto Trait Implementations§
impl Forget for ToUi
impl Freeze for ToUi
impl Move for ToUi
impl RefUnwindSafe for ToUi
impl Send for ToUi
impl Sync for ToUi
impl Unpin for ToUi
impl UnsafeUnpin for ToUi
impl UnwindSafe for ToUi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more