pub enum CompositorInput {
ServerFrame {
pane_id: u32,
ansi: Vec<u8>,
},
ServerFrameCapnp {
frame: FrameUpdate,
},
AppFrame {
app_id: u32,
ansi: Vec<u8>,
},
WindowList(Vec<WindowSummary>),
PaneClosed {
pane_id: u32,
},
KeyPress(KeyPress),
MouseClick {
col: u16,
row: u16,
},
Resize(u16, u16),
AppExited {
app_id: u32,
},
ServiceList(Vec<ServiceEntry>),
WorkerList {
sandboxes: Vec<WorkerEntry>,
pool_summary: String,
},
WorkerImageList {
images: Vec<ImageEntry>,
},
}Expand description
Events delivered to the compositor from the event loop.
Variants§
ServerFrame
ANSI frame bytes from TuiService for a server-managed pane (ANSI / WASM path).
ServerFrameCapnp
Decoded TuiFrame from TuiService (Capnp display mode, native CLI path).
Fields
§
frame: FrameUpdateAppFrame
Rendered ANSI bytes from a client-owned ChatApp (Phase 4).
WindowList(Vec<WindowSummary>)
Updated window list from TuiService.
PaneClosed
A server-managed pane was closed.
KeyPress(KeyPress)
Keyboard input from the user.
MouseClick
Mouse click at terminal (col, row) — 0-indexed.
Resize(u16, u16)
Terminal resize.
AppExited
A client-owned ChatApp exited (Phase 4).
ServiceList(Vec<ServiceEntry>)
Updated service list from polling.
WorkerList
Updated worker/sandbox list from polling.
WorkerImageList
Updated image list.
Fields
§
images: Vec<ImageEntry>Auto Trait Implementations§
impl Freeze for CompositorInput
impl RefUnwindSafe for CompositorInput
impl Send for CompositorInput
impl Sync for CompositorInput
impl Unpin for CompositorInput
impl UnsafeUnpin for CompositorInput
impl UnwindSafe for CompositorInput
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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