Struct jupyter::JupyterKernelSockets
source · pub struct JupyterKernelSockets { /* private fields */ }
Expand description
The sockets for Jupyter kernel.
Implementations§
source§impl JupyterKernelSockets
impl JupyterKernelSockets
sourcepub async fn send_executed(
&self,
executed: impl Executed,
parent: &JupyterMessage
)
pub async fn send_executed( &self, executed: impl Executed, parent: &JupyterMessage )
Send an executed result.
Cell counter will be +1
sourcepub async fn send_stream(&self, stream: JupyterStream, parent: &JupyterMessage)
pub async fn send_stream(&self, stream: JupyterStream, parent: &JupyterMessage)
Send information through io stream, such as print
Cell counter will not +1
sourcepub fn get_counter(&self) -> usize
pub fn get_counter(&self) -> usize
Read counter
sourcepub fn set_counter(&self, count: usize) -> bool
pub fn set_counter(&self, count: usize) -> bool
reset counter
sourcepub fn get_debug_mode(&self) -> bool
pub fn get_debug_mode(&self) -> bool
Get current debug state
sourcepub fn set_debug_mode(&self, on: bool) -> bool
pub fn set_debug_mode(&self, on: bool) -> bool
Set current debug state
Trait Implementations§
source§impl Clone for JupyterKernelSockets
impl Clone for JupyterKernelSockets
source§fn clone(&self) -> JupyterKernelSockets
fn clone(&self) -> JupyterKernelSockets
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 JupyterKernelSockets
impl Debug for JupyterKernelSockets
source§impl Default for JupyterKernelSockets
impl Default for JupyterKernelSockets
source§fn default() -> JupyterKernelSockets
fn default() -> JupyterKernelSockets
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for JupyterKernelSockets
impl Send for JupyterKernelSockets
impl Sync for JupyterKernelSockets
impl Unpin for JupyterKernelSockets
impl !UnwindSafe for JupyterKernelSockets
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