pub struct IsCompleteReply {
pub status: IsCompleteReplyStatus,
pub indent: String,
}
Fields§
§status: IsCompleteReplyStatus
Unlike other reply messages, the status is unique to this message, using IsCompleteReplyStatus
instead of ReplyStatus
.
indent: String
If status is ‘incomplete’, indent should contain the characters to use to indent the next line. This is only a hint: frontends may ignore it and use their own autoindentation rules. For other statuses, this field does not exist.
Implementations§
Source§impl IsCompleteReply
impl IsCompleteReply
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 IsCompleteReply
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};
let message = connection.recv().await?;
let child_message = IsCompleteReply{
// ...
}.as_child_of(&message);
connection.send(child_message).await?;
Trait Implementations§
Source§impl Clone for IsCompleteReply
impl Clone for IsCompleteReply
Source§fn clone(&self) -> IsCompleteReply
fn clone(&self) -> IsCompleteReply
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IsCompleteReply
impl Debug for IsCompleteReply
Source§impl<'de> Deserialize<'de> for IsCompleteReply
impl<'de> Deserialize<'de> for IsCompleteReply
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 From<IsCompleteReply> for JupyterMessage
impl From<IsCompleteReply> for JupyterMessage
Source§fn from(content: IsCompleteReply) -> Self
fn from(content: IsCompleteReply) -> Self
Create a new JupyterMessage
for a IsCompleteReply
.
⚠️ If you use this method, you must set the zmq identities yourself. If you have a message that
“caused” your message to be sent, use that message with as_child_of
instead.
Source§impl From<IsCompleteReply> for JupyterMessageContent
impl From<IsCompleteReply> for JupyterMessageContent
Source§fn from(content: IsCompleteReply) -> Self
fn from(content: IsCompleteReply) -> Self
Create a new JupyterMessageContent
for a IsCompleteReply
.