pub struct ExecuteReply {
pub status: ReplyStatus,
pub execution_count: ExecutionCount,
pub payload: Vec<Payload>,
pub user_expressions: Option<HashMap<String, String>>,
pub error: Option<Box<ReplyError>>,
}
Expand description
A reply to an execute request. This is not the output of execution, as this is the reply over
the shell
socket. Any number of outputs can be emitted as StreamContent
, DisplayData
,
UpdateDisplayData
, ExecuteResult
, and ErrorOutput
. This message is used to communicate
the status of the execution request, the execution count, and any user expressions that
were requested.
See https://jupyter-client.readthedocs.io/en/latest/messaging.html#execution-results
Fields§
§status: ReplyStatus
§execution_count: ExecutionCount
§payload: Vec<Payload>
§user_expressions: Option<HashMap<String, String>>
§error: Option<Box<ReplyError>>
Implementations§
Source§impl ExecuteReply
impl ExecuteReply
Sourcepub fn as_child_of(&self, parent: &JupyterMessage) -> JupyterMessage
pub fn as_child_of(&self, parent: &JupyterMessage) -> JupyterMessage
Create a new JupyterMessage
, assigning the parent for a ExecuteReply
message.
This method creates a new JupyterMessage
with the right content, parent header, and zmq identities, making
it suitable for sending over ZeroMQ.
§Example
use jupyter_protocol::messaging::{JupyterMessage, JupyterMessageContent};
use jupyter_protocol::ExecuteReply;
let parent_message = JupyterMessage::new(jupyter_protocol::UnknownMessage {
msg_type: "example".to_string(),
content: serde_json::json!({ "key": "value" }),
}, None);
let child_message = ExecuteReply{
..Default::default()
}.as_child_of(&parent_message);
// Next you would send the `child_message` over the connection
Trait Implementations§
Source§impl Clone for ExecuteReply
impl Clone for ExecuteReply
Source§fn clone(&self) -> ExecuteReply
fn clone(&self) -> ExecuteReply
Returns a copy 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 ExecuteReply
impl Debug for ExecuteReply
Source§impl Default for ExecuteReply
impl Default for ExecuteReply
Source§impl<'de> Deserialize<'de> for ExecuteReply
impl<'de> Deserialize<'de> for ExecuteReply
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ExecuteReply> for JupyterMessage
impl From<ExecuteReply> for JupyterMessage
Source§impl From<ExecuteReply> for JupyterMessageContent
impl From<ExecuteReply> for JupyterMessageContent
Source§fn from(content: ExecuteReply) -> Self
fn from(content: ExecuteReply) -> Self
Create a new JupyterMessageContent
for a ExecuteReply
.
Auto Trait Implementations§
impl Freeze for ExecuteReply
impl RefUnwindSafe for ExecuteReply
impl Send for ExecuteReply
impl Sync for ExecuteReply
impl Unpin for ExecuteReply
impl UnwindSafe for ExecuteReply
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
Mutably borrows from an owned value. Read more