pub enum ClientMessage {
Show 27 variants
GetState,
CellEdit {
cell_id: CellId,
source: String,
},
ExecuteCell {
cell_id: CellId,
},
ExecuteAll,
ExecuteDirty,
Interrupt,
Sync,
GetGraph,
WidgetUpdate {
cell_id: CellId,
widget_id: String,
value: WidgetValue,
},
SelectHistory {
cell_id: CellId,
index: usize,
},
InsertCell {
after_cell_id: Option<CellId>,
},
DeleteCell {
cell_id: CellId,
},
DuplicateCell {
cell_id: CellId,
},
MoveCell {
cell_id: CellId,
direction: MoveDirection,
},
Undo,
Redo,
RestartKernel,
ClearOutputs,
RenameCell {
cell_id: CellId,
new_display_name: String,
},
InsertMarkdownCell {
content: String,
after_cell_id: Option<CellId>,
},
EditMarkdownCell {
cell_id: CellId,
new_content: String,
},
DeleteMarkdownCell {
cell_id: CellId,
},
MoveMarkdownCell {
cell_id: CellId,
direction: MoveDirection,
},
InsertDefinitionCell {
content: String,
definition_type: DefinitionType,
after_cell_id: Option<CellId>,
},
EditDefinitionCell {
cell_id: CellId,
new_content: String,
},
DeleteDefinitionCell {
cell_id: CellId,
},
MoveDefinitionCell {
cell_id: CellId,
direction: MoveDirection,
},
}Expand description
Messages sent from client to server.
Variants§
GetState
Request current notebook state.
CellEdit
Edit a cell’s source code.
ExecuteCell
Execute a specific cell.
ExecuteAll
Execute all cells.
ExecuteDirty
Execute cells that need re-execution.
Interrupt
Interrupt running execution.
Sync
Sync notebook to .ipynb format.
GetGraph
Request dependency graph.
WidgetUpdate
Update a widget value.
Fields
value: WidgetValueNew widget value.
SelectHistory
Select a history entry to use as the current output.
InsertCell
Insert a new cell.
DeleteCell
Delete a cell.
DuplicateCell
Duplicate a cell.
MoveCell
Move a cell up or down.
Undo
Undo the last cell management operation.
Redo
Redo the last undone operation.
RestartKernel
Restart the kernel (kill WorkerPool, clear memory state, preserve source).
ClearOutputs
Clear all cell outputs without restarting the kernel.
RenameCell
Rename a cell’s display name.
InsertMarkdownCell
Insert a new markdown cell.
Fields
EditMarkdownCell
Edit a markdown cell’s content.
DeleteMarkdownCell
Delete a markdown cell.
MoveMarkdownCell
Move a markdown cell up or down.
InsertDefinitionCell
Insert a new definition cell.
Fields
definition_type: DefinitionTypeType of definition.
EditDefinitionCell
Edit a definition cell’s content.
DeleteDefinitionCell
Delete a definition cell.
MoveDefinitionCell
Move a definition cell up or down.
Trait Implementations§
Source§impl Clone for ClientMessage
impl Clone for ClientMessage
Source§fn clone(&self) -> ClientMessage
fn clone(&self) -> ClientMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientMessage
impl Debug for ClientMessage
Source§impl<'de> Deserialize<'de> for ClientMessage
impl<'de> Deserialize<'de> for ClientMessage
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>,
Auto Trait Implementations§
impl Freeze for ClientMessage
impl RefUnwindSafe for ClientMessage
impl Send for ClientMessage
impl Sync for ClientMessage
impl Unpin for ClientMessage
impl UnwindSafe for ClientMessage
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§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>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.