pub enum ControlMessage {
Show 42 variants
Resize {
cols: u16,
rows: u16,
},
Input {
data: Vec<u8>,
},
LoadPlugin {
path: String,
},
Ping {
timestamp: u64,
},
Disconnect {
client_id: u64,
},
SessionCreate {
name: String,
},
SessionDelete {
id: String,
},
SessionList,
SessionAttach {
id: String,
},
SessionDetach {
id: String,
},
SessionRename {
id: String,
new_name: String,
},
TabCreate {
title: Option<String>,
},
TabClose {
tab_id: u64,
},
TabSwitch {
tab_id: u64,
},
TabRename {
tab_id: u64,
new_title: String,
},
TabList,
PaneSplit {
pane_id: u64,
direction: SplitDirection,
},
PaneClose {
pane_id: u64,
},
PaneFocus {
pane_id: u64,
},
PaneResize {
pane_id: u64,
width: u16,
height: u16,
},
PaneFocusNext,
PaneFocusPrev,
TabNext,
TabPrev,
MouseClick {
col: u16,
row: u16,
button: u8,
},
CommandSelected {
id: String,
},
PluginListRequest,
PluginEnable {
name: String,
},
PluginDisable {
name: String,
},
PluginReload {
name: String,
},
PluginMenuRequest {
plugin_name: String,
},
PluginMenuExecute {
plugin_name: String,
action: MenuActionType,
},
PluginLog {
plugin_name: String,
level: LogLevel,
message: String,
},
PluginNotify {
title: String,
body: String,
level: NotifyLevel,
},
NavEnterHintMode {
plugin_name: String,
},
NavExitMode {
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,
},
ZonesRequest,
CopyLastOutput,
SelectZone {
zone_id: u64,
},
ExtractZoneText {
zone_id: u64,
},
}Variants§
Resize
Input
LoadPlugin
Ping
Disconnect
SessionCreate
SessionDelete
SessionList
SessionAttach
SessionDetach
SessionRename
TabCreate
TabClose
TabSwitch
TabRename
TabList
PaneSplit
PaneClose
PaneFocus
PaneResize
PaneFocusNext
Focus the next pane in the current tab (for navigation)
PaneFocusPrev
Focus the previous pane in the current tab (for navigation)
TabNext
Switch to the next tab
TabPrev
Switch to the previous tab
MouseClick
Send mouse click event to the terminal
CommandSelected
PluginListRequest
PluginEnable
PluginDisable
PluginReload
PluginMenuRequest
PluginMenuExecute
PluginLog
PluginNotify
ZonesRequest
Request semantic zones update from daemon
CopyLastOutput
Copy the output from the last completed command
SelectZone
Select a specific zone by ID
ExtractZoneText
Extract text from a zone
Trait Implementations§
Source§impl Archive for ControlMessage
impl Archive for ControlMessage
Source§type Archived = ArchivedControlMessage
type Archived = ArchivedControlMessage
The archived representation of this type. Read more
Source§type Resolver = ControlMessageResolver
type Resolver = ControlMessageResolver
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§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§fn clone(&self) -> ControlMessage
fn clone(&self) -> ControlMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlMessage
impl Debug for ControlMessage
Source§impl<__D: Fallible + ?Sized> Deserialize<ControlMessage, __D> for Archived<ControlMessage>where
u16: Archive,
Archived<u16>: Deserialize<u16, __D>,
Vec<u8>: Archive,
Archived<Vec<u8>>: Deserialize<Vec<u8>, __D>,
String: Archive,
Archived<String>: Deserialize<String, __D>,
u64: Archive,
Archived<u64>: Deserialize<u64, __D>,
Option<String>: Archive,
Archived<Option<String>>: Deserialize<Option<String>, __D>,
SplitDirection: Archive,
Archived<SplitDirection>: Deserialize<SplitDirection, __D>,
u8: Archive,
Archived<u8>: Deserialize<u8, __D>,
MenuActionType: Archive,
Archived<MenuActionType>: Deserialize<MenuActionType, __D>,
LogLevel: Archive,
Archived<LogLevel>: Deserialize<LogLevel, __D>,
NotifyLevel: Archive,
Archived<NotifyLevel>: Deserialize<NotifyLevel, __D>,
NavFocusableAction: Archive,
Archived<NavFocusableAction>: Deserialize<NavFocusableAction, __D>,
impl<__D: Fallible + ?Sized> Deserialize<ControlMessage, __D> for Archived<ControlMessage>where
u16: Archive,
Archived<u16>: Deserialize<u16, __D>,
Vec<u8>: Archive,
Archived<Vec<u8>>: Deserialize<Vec<u8>, __D>,
String: Archive,
Archived<String>: Deserialize<String, __D>,
u64: Archive,
Archived<u64>: Deserialize<u64, __D>,
Option<String>: Archive,
Archived<Option<String>>: Deserialize<Option<String>, __D>,
SplitDirection: Archive,
Archived<SplitDirection>: Deserialize<SplitDirection, __D>,
u8: Archive,
Archived<u8>: Deserialize<u8, __D>,
MenuActionType: Archive,
Archived<MenuActionType>: Deserialize<MenuActionType, __D>,
LogLevel: Archive,
Archived<LogLevel>: Deserialize<LogLevel, __D>,
NotifyLevel: Archive,
Archived<NotifyLevel>: Deserialize<NotifyLevel, __D>,
NavFocusableAction: Archive,
Archived<NavFocusableAction>: Deserialize<NavFocusableAction, __D>,
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<ControlMessage, __D::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<ControlMessage, __D::Error>
Deserializes using the given deserializer
Source§impl<__S: Fallible + ?Sized> Serialize<__S> for ControlMessagewhere
u16: Serialize<__S>,
Vec<u8>: Serialize<__S>,
String: Serialize<__S>,
u64: Serialize<__S>,
Option<String>: Serialize<__S>,
SplitDirection: Serialize<__S>,
u8: Serialize<__S>,
MenuActionType: Serialize<__S>,
LogLevel: Serialize<__S>,
NotifyLevel: Serialize<__S>,
NavFocusableAction: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for ControlMessagewhere
u16: Serialize<__S>,
Vec<u8>: Serialize<__S>,
String: Serialize<__S>,
u64: Serialize<__S>,
Option<String>: Serialize<__S>,
SplitDirection: Serialize<__S>,
u8: Serialize<__S>,
MenuActionType: Serialize<__S>,
LogLevel: Serialize<__S>,
NotifyLevel: Serialize<__S>,
NavFocusableAction: Serialize<__S>,
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnsafeUnpin for ControlMessage
impl UnwindSafe for ControlMessage
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
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 Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive, it may be unsized. Read moreSource§type MetadataResolver = ()
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,
)
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§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.