pub enum Event {
Ready {
protocol_version: u32,
engine_version: String,
fps: u32,
size: [u32; 2],
scenes: Vec<SceneInfo>,
},
Reloaded,
Building,
Error {
kind: ErrorKind,
message: String,
spans: Vec<Span>,
},
Frame {
index: u32,
},
Timeline {
frames: u32,
markers: Vec<MarkerInfo>,
scenes: Vec<SceneInfo>,
audio_waveform: Option<Vec<f32>>,
},
Tree {
nodes: Vec<NodeInfo>,
},
Signals {
node_id: u32,
values: Vec<SignalValue>,
bounds: Option<[f64; 8]>,
},
Selected {
node_id: Option<u32>,
},
Playback {
playing: bool,
frame: u32,
},
MetaChanged {
scene: String,
meta: Meta,
},
}Expand description
Engine → UI.
Variants§
Ready
Answer to Hello: the engine and the project.
Fields
§
protocol_version: u32PROTOCOL_VERSION of the engine.
Reloaded
A new build is running (sent after a hot reload).
Building
The CLI started rebuilding the project.
Error
Something failed; the last good state stays visible.
Fields
Frame
Followed by a binary frame (see FrameHeader).
Timeline
Timeline layout; sent on start and when it changes.
Fields
§
markers: Vec<MarkerInfo>All markers of all scenes.
Tree
The node tree of the current frame’s scene.
Signals
Current values of the selected node; sent after each frame while something is selected.
Fields
§
values: Vec<SignalValue>One entry per property.
Selected
Selection changed (answer to Pick and Select).
Playback
Playback state changed (also sent while playing).
MetaChanged
A scene’s meta changed and was saved.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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