Skip to main content

DaemonMessage

Enum DaemonMessage 

Source
pub enum DaemonMessage {
Show 41 variants Session(SessionResponse), TabCreated { tab: TabInfo, }, TabClosed { tab_id: u64, }, TabSwitched { tab_id: u64, }, TabListResponse { tabs: Vec<TabInfo>, }, PaneCreated { pane: PaneInfo, }, PaneClosed { pane_id: u64, }, PaneFocused { pane_id: u64, }, PaneLayoutUpdate { panes: Vec<PaneInfo>, }, StatusBarUpdate { window_id: u64, side: StatusBarSide, items: Vec<StatusRenderItem>, }, DrawOverlay { id: u64, x: u16, y: u16, text: String, style: OverlayStyle, }, ClearOverlays { id: Option<u64>, }, ShowModal { title: String, items: Vec<ModalItem>, }, HideModal, PluginList { plugins: Vec<PluginInspectorInfo>, }, PluginStatusChanged { name: String, enabled: bool, }, PluginError { name: String, error: String, }, PluginLog { plugin_name: String, level: LogLevel, message: String, }, PluginNotification { title: String, body: String, level: NotifyLevel, }, PluginMenuResponse { plugin_name: String, menu_json: String, }, PluginMenuError { plugin_name: String, error: String, }, ThemeUpdate { theme_json: String, }, PromptMarkersUpdate { markers: Vec<PromptMarkerInfo>, }, SemanticZonesUpdate { zones: Vec<SemanticZone>, }, CommandBlocksUpdate { blocks: Vec<CommandBlock>, }, ZoneTextExtracted { zone_id: u64, text: String, }, Event(EventMessage), NavFocusableRegistered { plugin_name: String, focusable_id: u64, }, NavFocusableUnregistered { plugin_name: String, focusable_id: u64, }, NavModeEntered { plugin_name: String, }, NavModeExited { plugin_name: String, }, NavRegisterFocusable { plugin_name: String, x: u16, y: u16, width: u16, height: u16, label: String, action: NavFocusableAction, }, NavUnregisterFocusable { plugin_name: String, focusable_id: u64, }, SpawnOverlay { plugin_name: String, overlay_id: u64, x: u16, y: u16, content: String, style: OverlayStyle, }, RemoveOverlay { plugin_name: String, overlay_id: u64, }, AddStatusItem { plugin_name: String, item_id: u64, label: String, content: String, priority: i32, }, RemoveStatusItem { plugin_name: String, item_id: u64, }, PromptJump { plugin_name: String, direction: PromptJumpDirection, }, ThemeApply { theme_name: String, }, PaletteColorSet { color_name: String, value: String, }, ThemeInfoResponse { plugin_name: String, theme_name: String, },
}

Variants§

§

Session(SessionResponse)

§

TabCreated

Fields

§

TabClosed

Fields

§tab_id: u64
§

TabSwitched

Fields

§tab_id: u64
§

TabListResponse

Fields

§tabs: Vec<TabInfo>
§

PaneCreated

Fields

§

PaneClosed

Fields

§pane_id: u64
§

PaneFocused

Fields

§pane_id: u64
§

PaneLayoutUpdate

Fields

§panes: Vec<PaneInfo>
§

StatusBarUpdate

Fields

§window_id: u64
§

DrawOverlay

Fields

§id: u64
§text: String
§

ClearOverlays

Fields

§

ShowModal

Fields

§title: String
§

HideModal

§

PluginList

Fields

§

PluginStatusChanged

Fields

§name: String
§enabled: bool
§

PluginError

Fields

§name: String
§error: String
§

PluginLog

Fields

§plugin_name: String
§level: LogLevel
§message: String
§

PluginNotification

Fields

§title: String
§body: String
§

PluginMenuResponse

Fields

§plugin_name: String
§menu_json: String
§

PluginMenuError

Fields

§plugin_name: String
§error: String
§

ThemeUpdate

Fields

§theme_json: String
§

PromptMarkersUpdate

Fields

§markers: Vec<PromptMarkerInfo>

List of current prompt markers from daemon

§

SemanticZonesUpdate

Fields

§zones: Vec<SemanticZone>

List of current semantic zones (prompt, input, output regions)

§

CommandBlocksUpdate

Fields

§blocks: Vec<CommandBlock>

List of completed command blocks

§

ZoneTextExtracted

Response to ExtractZoneText with the zone’s text content

Fields

§zone_id: u64
§text: String
§

Event(EventMessage)

§

NavFocusableRegistered

Fields

§plugin_name: String
§focusable_id: u64
§

NavFocusableUnregistered

Fields

§plugin_name: String
§focusable_id: u64
§

NavModeEntered

Fields

§plugin_name: String
§

NavModeExited

Fields

§plugin_name: String
§

NavRegisterFocusable

Forward focusable registration from daemon to client

Fields

§plugin_name: String
§width: u16
§height: u16
§label: String
§

NavUnregisterFocusable

Forward focusable unregistration from daemon to client

Fields

§plugin_name: String
§focusable_id: u64
§

SpawnOverlay

Spawn an overlay at a given position

Fields

§plugin_name: String
§overlay_id: u64
§content: String
§

RemoveOverlay

Remove a previously spawned overlay

Fields

§plugin_name: String
§overlay_id: u64
§

AddStatusItem

Add a status bar item

Fields

§plugin_name: String
§item_id: u64
§label: String
§content: String
§priority: i32
§

RemoveStatusItem

Remove a status bar item

Fields

§plugin_name: String
§item_id: u64
§

PromptJump

Trigger prompt jump navigation

Fields

§plugin_name: String
§

ThemeApply

Apply a theme by name

Fields

§theme_name: String
§

PaletteColorSet

Set a specific palette color

Fields

§color_name: String
§value: String
§

ThemeInfoResponse

Response with current theme info

Fields

§plugin_name: String
§theme_name: String

Trait Implementations§

Source§

impl Archive for DaemonMessage

Source§

type Archived = ArchivedDaemonMessage

The archived representation of this type. Read more
Source§

type Resolver = DaemonMessageResolver

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.
Source§

unsafe fn resolve( &self, pos: usize, resolver: <Self as Archive>::Resolver, out: *mut <Self as Archive>::Archived, )

Creates the archived version of this value at the given position and writes it to the given output. Read more
Source§

impl Clone for DaemonMessage

Source§

fn clone(&self) -> DaemonMessage

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DaemonMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<__D: Fallible + ?Sized> Deserialize<DaemonMessage, __D> for Archived<DaemonMessage>
where SessionResponse: Archive, Archived<SessionResponse>: Deserialize<SessionResponse, __D>, TabInfo: Archive, Archived<TabInfo>: Deserialize<TabInfo, __D>, u64: Archive, Archived<u64>: Deserialize<u64, __D>, Vec<TabInfo>: Archive, Archived<Vec<TabInfo>>: Deserialize<Vec<TabInfo>, __D>, PaneInfo: Archive, Archived<PaneInfo>: Deserialize<PaneInfo, __D>, Vec<PaneInfo>: Archive, Archived<Vec<PaneInfo>>: Deserialize<Vec<PaneInfo>, __D>, StatusBarSide: Archive, Archived<StatusBarSide>: Deserialize<StatusBarSide, __D>, Vec<StatusRenderItem>: Archive, Archived<Vec<StatusRenderItem>>: Deserialize<Vec<StatusRenderItem>, __D>, u16: Archive, Archived<u16>: Deserialize<u16, __D>, String: Archive, Archived<String>: Deserialize<String, __D>, OverlayStyle: Archive, Archived<OverlayStyle>: Deserialize<OverlayStyle, __D>, Option<u64>: Archive, Archived<Option<u64>>: Deserialize<Option<u64>, __D>, Vec<ModalItem>: Archive, Archived<Vec<ModalItem>>: Deserialize<Vec<ModalItem>, __D>, Vec<PluginInspectorInfo>: Archive, Archived<Vec<PluginInspectorInfo>>: Deserialize<Vec<PluginInspectorInfo>, __D>, bool: Archive, Archived<bool>: Deserialize<bool, __D>, LogLevel: Archive, Archived<LogLevel>: Deserialize<LogLevel, __D>, NotifyLevel: Archive, Archived<NotifyLevel>: Deserialize<NotifyLevel, __D>, Vec<PromptMarkerInfo>: Archive, Archived<Vec<PromptMarkerInfo>>: Deserialize<Vec<PromptMarkerInfo>, __D>, Vec<SemanticZone>: Archive, Archived<Vec<SemanticZone>>: Deserialize<Vec<SemanticZone>, __D>, Vec<CommandBlock>: Archive, Archived<Vec<CommandBlock>>: Deserialize<Vec<CommandBlock>, __D>, EventMessage: Archive, Archived<EventMessage>: Deserialize<EventMessage, __D>, NavFocusableAction: Archive, Archived<NavFocusableAction>: Deserialize<NavFocusableAction, __D>, i32: Archive, Archived<i32>: Deserialize<i32, __D>, PromptJumpDirection: Archive, Archived<PromptJumpDirection>: Deserialize<PromptJumpDirection, __D>,

Source§

fn deserialize( &self, deserializer: &mut __D, ) -> Result<DaemonMessage, __D::Error>

Deserializes using the given deserializer
Source§

impl<__S: Fallible + ?Sized> Serialize<__S> for DaemonMessage

Source§

fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, __S::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> ArchiveUnsized for T
where T: Archive,

Source§

type Archived = <T as Archive>::Archived

The archived counterpart of this type. Unlike Archive, it may be unsized. Read more
Source§

type MetadataResolver = ()

The resolver for the metadata of this type. Read more
Source§

unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )

Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more
Source§

unsafe fn resolve_unsized( &self, from: usize, to: usize, resolver: Self::MetadataResolver, out: *mut RelPtr<Self::Archived, <isize as Archive>::Archived>, )

Resolves a relative pointer to this value with the given from and to and writes it to the given output. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T, S> SerializeUnsized<S> for T
where T: Serialize<S>, S: Serializer + ?Sized,

Source§

fn serialize_unsized( &self, serializer: &mut S, ) -> Result<usize, <S as Fallible>::Error>

Writes the object and returns the position of the archived type.
Source§

fn serialize_metadata(&self, _: &mut S) -> Result<(), <S as Fallible>::Error>

Serializes the metadata for the given type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.