pub enum ServerMessage {
Show 30 variants
NotebookState {
path: String,
cells: Vec<CellState>,
source_order: Vec<CellId>,
execution_order: Vec<CellId>,
workspace_root: Option<String>,
cargo_toml_path: Option<String>,
},
CellStarted {
cell_id: CellId,
},
CellCompleted {
cell_id: CellId,
duration_ms: u64,
output: Option<CellOutput>,
},
CellDirty {
cell_id: CellId,
},
CellError {
cell_id: CellId,
error: String,
location: Option<SourceLocation>,
},
CompileError {
cell_id: CellId,
errors: Vec<CompileErrorInfo>,
},
GraphUpdated {
edges: Vec<DependencyEdge>,
levels: Vec<Vec<CellId>>,
},
FileChanged {
modified_cells: Vec<CellId>,
added_cells: Vec<CellState>,
removed_cells: Vec<CellId>,
},
SyncCompleted {
ipynb_path: String,
},
ExecutionAborted {
cell_id: Option<CellId>,
},
Error {
message: String,
},
CellInserted {
cell_id: CellId,
error: Option<String>,
},
CellDeleted {
cell_id: CellId,
error: Option<String>,
},
CellDuplicated {
original_cell_id: CellId,
new_cell_id: CellId,
error: Option<String>,
},
CellMoved {
cell_id: CellId,
error: Option<String>,
},
HistorySelected {
cell_id: CellId,
index: usize,
count: usize,
output: Option<CellOutput>,
dirty_cells: Vec<CellId>,
},
UndoResult {
success: bool,
error: Option<String>,
description: Option<String>,
},
RedoResult {
success: bool,
error: Option<String>,
description: Option<String>,
},
UndoRedoState {
can_undo: bool,
can_redo: bool,
undo_description: Option<String>,
redo_description: Option<String>,
},
KernelRestarted {
error: Option<String>,
},
OutputsCleared {
error: Option<String>,
},
CellRenamed {
cell_id: CellId,
new_display_name: String,
error: Option<String>,
},
MarkdownCellInserted {
cell_id: CellId,
error: Option<String>,
},
MarkdownCellEdited {
cell_id: CellId,
error: Option<String>,
},
MarkdownCellDeleted {
cell_id: CellId,
error: Option<String>,
},
MarkdownCellMoved {
cell_id: CellId,
error: Option<String>,
},
DefinitionCellInserted {
cell_id: CellId,
error: Option<String>,
},
DefinitionCellEdited {
cell_id: CellId,
error: Option<String>,
dirty_cells: Vec<CellId>,
},
DefinitionCellDeleted {
cell_id: CellId,
error: Option<String>,
},
DefinitionCellMoved {
cell_id: CellId,
error: Option<String>,
},
}Expand description
Messages sent from server to client.
Variants§
NotebookState
Full notebook state (sent on connection or refresh).
Fields
CellStarted
Cell execution started.
CellCompleted
Cell execution completed successfully.
Fields
output: Option<CellOutput>Cell output (serialized).
CellDirty
Cell marked as dirty (needs re-execution because upstream changed).
CellError
Cell execution failed.
Fields
location: Option<SourceLocation>Source location if available.
CompileError
Compilation error (before execution).
GraphUpdated
Dependency graph updated.
Fields
edges: Vec<DependencyEdge>New dependency edges.
FileChanged
Notebook file changed externally.
Fields
SyncCompleted
Sync completed.
ExecutionAborted
Execution was aborted by user request.
Error
Generic error message.
CellInserted
Cell insertion result.
Fields
CellDeleted
Cell deletion result.
Fields
CellDuplicated
Cell duplication result.
Fields
CellMoved
Cell move result.
HistorySelected
History entry selected for a cell.
Fields
output: Option<CellOutput>The output at this history entry.
UndoResult
Undo operation result.
Fields
RedoResult
Redo operation result.
Fields
UndoRedoState
Current undo/redo state (sent after each operation).
Fields
KernelRestarted
Kernel restart completed.
OutputsCleared
All outputs cleared.
CellRenamed
Cell rename result.
Fields
MarkdownCellInserted
Markdown cell insertion result.
Fields
MarkdownCellEdited
Markdown cell edit result.
Fields
MarkdownCellDeleted
Markdown cell deletion result.
Fields
MarkdownCellMoved
Markdown cell move result.
Fields
DefinitionCellInserted
Definition cell insertion result.
Fields
DefinitionCellEdited
Definition cell edit result.
Fields
DefinitionCellDeleted
Definition cell deletion result.
Fields
DefinitionCellMoved
Definition cell move result.
Trait Implementations§
Source§impl Clone for ServerMessage
impl Clone for ServerMessage
Source§fn clone(&self) -> ServerMessage
fn clone(&self) -> ServerMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerMessage
impl Debug for ServerMessage
Source§impl<'de> Deserialize<'de> for ServerMessage
impl<'de> Deserialize<'de> for ServerMessage
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 ServerMessage
impl RefUnwindSafe for ServerMessage
impl Send for ServerMessage
impl Sync for ServerMessage
impl Unpin for ServerMessage
impl UnwindSafe for ServerMessage
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.