pub enum SessionCommand {
Show 33 variants
OpenView {
recording: RecordingRef,
name: Option<String>,
},
CopyView {
view: String,
channels: Option<Vec<usize>>,
name: Option<String>,
},
CloseView {
view: String,
},
RenameView {
view: String,
name: String,
},
SelectView {
view: String,
},
AddOp {
view: String,
node: Node,
index: Option<usize>,
id: Option<String>,
},
SetOp {
view: String,
op: String,
node: Node,
},
EnableOp {
view: String,
op: String,
enabled: bool,
},
RemoveOp {
view: String,
op: String,
},
MoveOp {
view: String,
op: String,
index: usize,
},
SetDisplay {
view: String,
display: DisplayDoc,
},
SetPluginData {
view: String,
plugin: String,
data: Value,
},
AddNode {
kind: NodeKind,
x: f32,
y: f32,
id: Option<String>,
after: Option<String>,
},
RemoveNodes {
nodes: Vec<String>,
},
MoveNodes {
moves: Vec<NodeMove>,
},
Connect {
from: String,
to: String,
},
Disconnect {
to: String,
},
SetNode {
id: String,
node: Node,
},
EnableNode {
id: String,
enabled: bool,
},
SetSource {
id: String,
recording: RecordingRef,
},
AddRecipe {
recipe: RecipeDoc,
},
MakeRecipe {
nodes: Vec<String>,
name: String,
labels: Vec<String>,
},
SetRecipeOverride {
id: String,
key: String,
value: Value,
},
SetRecipeOp {
recipe: String,
op: String,
node: Node,
},
SetRecipeInfo {
recipe: String,
name: String,
labels: Vec<String>,
description: String,
},
Ungroup {
id: String,
},
SetEpoch {
epoch: EpochDoc,
},
RemoveEpoch {
id: String,
},
SetEpochs {
epochs: Vec<EpochDoc>,
},
SetEventSet {
set: EventSetDoc,
},
RemoveEventSet {
id: String,
},
PlaceRecording {
path: PathBuf,
source: Option<String>,
start_sec: f64,
},
UnplaceRecording {
path: PathBuf,
},
}Variants§
OpenView
Adds a recording and a view of it (all its channels, no ops) and shows it.
CopyView
Copies a view (its chain, display, plugin data) into a new one, optionally reading only
channels (indices into the source, in order): how some channels get other processing.
CloseView
Removes a view and what only fed it.
RenameView
SelectView
Shows a view.
AddOp
Inserts an op at index (default: the end) of a view’s chain.
SetOp
Replaces an op’s parameters (the node may not change kind to read / write).
EnableOp
RemoveOp
Removes an op (from every chain through it: its input feeds what it fed).
MoveOp
Moves an op to index in the view’s chain (an op other chains share stays put).
SetDisplay
SetPluginData
Replaces what plugin plugin keeps for a view (null removes it), e.g.
{"plugin": "synapse", "data": {"sorting": "rec.kilosort4.sorting.zarr"}}.
AddNode
Adds a node at (x, y), fed by after when given.
RemoveNodes
Removes nodes and their edges.
MoveNodes
Places nodes.
Connect
Feeds to from from (replacing to’s input).
Disconnect
Removes to’s input.
SetNode
Replaces an op node’s parameters.
EnableNode
SetSource
Points a source node at another recording (or channel subset).
AddRecipe
Adds (or replaces) a recipe definition in the session (e.g. from the library).
MakeRecipe
Turns a chain of op nodes into a recipe and one node using it, wired as they were.
SetRecipeOverride
A use’s own value of key ("<op>.<key>"); null goes back to the recipe’s.
SetRecipeOp
Edits the recipe itself (every use follows): op op’s values become node’s.
SetRecipeInfo
Renames a recipe and relabels it (every use follows).
Ungroup
Replaces a recipe node by its ops (with its overrides), wired as it was.
SetEpoch
Adds an epoch, or replaces the one with its id (an empty id: a new one).
RemoveEpoch
SetEpochs
Adds several epochs as one change (one undo step); none when one of them is invalid.
SetEventSet
Adds an event set (empty id: a new one) or replaces the one with its id (its look).
Fields
set: EventSetDocRemoveEventSet
PlaceRecording
Puts a recording at start_sec on the session’s time.
UnplaceRecording
Takes a recording off the session’s time.
Trait Implementations§
Source§impl Clone for SessionCommand
impl Clone for SessionCommand
Source§impl Debug for SessionCommand
impl Debug for SessionCommand
Source§impl<'de> Deserialize<'de> for SessionCommand
impl<'de> Deserialize<'de> for SessionCommand
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>,
Source§impl JsonSchema for SessionCommand
impl JsonSchema for SessionCommand
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SessionCommand
impl PartialEq for SessionCommand
Source§impl Serialize for SessionCommand
impl Serialize for SessionCommand
impl StructuralPartialEq for SessionCommand
Auto Trait Implementations§
impl Forget for SessionCommand
impl Freeze for SessionCommand
impl Move for SessionCommand
impl RefUnwindSafe for SessionCommand
impl Send for SessionCommand
impl Sync for SessionCommand
impl Unpin for SessionCommand
impl UnsafeUnpin for SessionCommand
impl UnwindSafe for SessionCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneExpand for Twhere
T: Clone,
impl<T> CloneExpand for Twhere
T: Clone,
fn __expand_clone_method(&self, _: &Scope) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more