pub struct Status {
    pub execution_state: ExecutionState,
}Expand description
A message indicating the current status of the kernel.
See https://jupyter-client.readthedocs.io/en/latest/messaging.html#kernel-status
Fields§
§execution_state: ExecutionStateImplementations§
Source§impl Status
 
impl Status
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 Status 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::Status;
let parent_message = JupyterMessage::new(jupyter_protocol::UnknownMessage {
  msg_type: "example".to_string(),
  content: serde_json::json!({ "key": "value" }),
}, None);
let child_message = Status{
  ..Default::default()
}.as_child_of(&parent_message);
// Next you would send the `child_message` over the connection
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
 
impl<'de> Deserialize<'de> for Status
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<Status> for JupyterMessage
 
impl From<Status> for JupyterMessage
Source§impl From<Status> for JupyterMessageContent
 
impl From<Status> for JupyterMessageContent
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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