pub struct InterruptReply {
pub status: ReplyStatus,
pub error: Option<Box<ReplyError>>,
}
Fields§
§status: ReplyStatus
§error: Option<Box<ReplyError>>
Implementations§
Source§impl InterruptReply
impl InterruptReply
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 InterruptReply
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 = InterruptReply{
// ...
}.as_child_of(&message);
connection.send(child_message).await?;
Trait Implementations§
Source§impl Clone for InterruptReply
impl Clone for InterruptReply
Source§fn clone(&self) -> InterruptReply
fn clone(&self) -> InterruptReply
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 InterruptReply
impl Debug for InterruptReply
Source§impl Default for InterruptReply
impl Default for InterruptReply
Source§impl<'de> Deserialize<'de> for InterruptReply
impl<'de> Deserialize<'de> for InterruptReply
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<InterruptReply> for JupyterMessage
impl From<InterruptReply> for JupyterMessage
Source§fn from(content: InterruptReply) -> Self
fn from(content: InterruptReply) -> Self
Create a new JupyterMessage
for a InterruptReply
.
⚠️ 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<InterruptReply> for JupyterMessageContent
impl From<InterruptReply> for JupyterMessageContent
Source§fn from(content: InterruptReply) -> Self
fn from(content: InterruptReply) -> Self
Create a new JupyterMessageContent
for a InterruptReply
.
Auto Trait Implementations§
impl Freeze for InterruptReply
impl RefUnwindSafe for InterruptReply
impl Send for InterruptReply
impl Sync for InterruptReply
impl Unpin for InterruptReply
impl UnwindSafe for InterruptReply
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