pub struct Event {
pub seq: u64,
pub ts_us: u64,
pub tab: Option<u32>,
pub name: String,
pub payload: Value,
pub origin: Origin,
pub cause: Option<u64>,
pub hops: u8,
pub synthetic: bool,
}Expand description
Every event, from the host or emitted by a plugin or MCP client.
Fields§
§seq: u64§ts_us: u64§tab: Option<u32>§name: Stringshell.cwd_changed, input.key, commander.selection …
payload: Value§origin: Origin§cause: Option<u64>Seq of the event whose handler emitted this one.
hops: u80 for host input; +1 per emit made while handling an event.
synthetic: boolEmitted by a plugin or MCP client rather than observed by the host.
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 Forget for Event
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