pub enum WcpCommand {
Show 17 variants
get_item_list,
get_item_info {
ids: Vec<DisplayedItemRef>,
},
set_item_color {
id: DisplayedItemRef,
color: String,
},
add_variables {
variables: Vec<String>,
},
add_scope {
scope: String,
recursive: bool,
},
add_items {
items: Vec<String>,
recursive: bool,
},
add_markers {
markers: Vec<MarkerInfo>,
},
reload,
set_viewport_to {
timestamp: BigInt,
},
set_viewport_range {
start: BigInt,
end: BigInt,
},
remove_items {
ids: Vec<DisplayedItemRef>,
},
focus_item {
id: DisplayedItemRef,
},
clear,
load {
source: String,
},
zoom_to_fit {
viewport_idx: usize,
},
set_cursor {
timestamp: BigInt,
},
shutdown,
}Variants§
get_item_list
Responds with WcpResponse::get_item_list which contains a list of the items
in the currently loaded waveforms
get_item_info
Responds with WcpResponse::get_item_info which contains information about
each item specified in ids in the same order as in the ids array.
Responds with an error if any of the specified IDs are not items in the currently loaded
waveform.
Fields
ids: Vec<DisplayedItemRef>set_item_color
Changes the color of the specified item to the specified color.
Responds with WcpResponse::ack
Responds with an error if the id does not exist in the currently loaded waveform.
add_variables
Adds the specified variables to the view.
Responds with WcpResponse::add_variables which contains a list of the item references
that can be used to reference the added items later
Responds with an error if no waveforms are loaded
add_scope
Adds all variables in the specified scope to the view.
Does so recursively if specified
Responds with WcpResponse::add_variables which contains a list of the item references
that can be used to reference the added items later
Responds with an error if no waveforms are loaded
add_items
Adds the specified variables or variables in the specified scopes to the view.
Does so recursively if specified
Responds with WcpResponse::add_items which contains a list of the item references
that can be used to reference the added items later
Responds with an error if no waveforms are loaded
add_markers
Adds the specified markers to the view.
Responds with WcpResponse::add_markers which contains a list of the item references
that can be used to reference the added items later
Responds with an error if no waveforms are loaded
Fields
markers: Vec<MarkerInfo>reload
Reloads the waveform from disk if this is possible for the current waveform format.
If it is not possible, this has no effect.
Responds instantly with WcpResponse::ack
Once the waveforms have been loaded, a separate event is triggered
set_viewport_to
Moves the viewport to center it on the specified timestamp. Does not affect the zoom
level.
Responds with WcpResponse::ack
set_viewport_range
Moves the viewport to center it on the specified timestamps range. Does affect the zoom
level.
Responds with WcpResponse::ack
remove_items
Removes the specified items from the view.
Responds with WcpResponse::ack
Does not error if some of the IDs do not exist
Fields
ids: Vec<DisplayedItemRef>focus_item
Sets the specified ID as the focused item.
Responds with WcpResponse::ack
Responds with an error if no waveforms are loaded or if the item reference
does not exist
Fields
clear
Removes all currently displayed items
Responds with WcpResponse::ack
load
Loads a waveform from the specified file.
Responds instantly with WcpResponse::ack
Once the file is loaded, a WcpEvent::waveforms_loaded is emitted.
zoom_to_fit
Zooms out fully to fit the whole waveform in the view
Responds instantly with WcpResponse::ack
set_cursor
Set the cursor to the given time.
Responds instantly with WcpResponse::ack
shutdown
Shut down the WCP server.