Struct runtimelib::messaging::Connection
source · pub struct Connection<S> {
pub socket: S,
pub mac: Option<Key>,
pub session_id: String,
}Fields§
§socket: S§mac: Option<Key>Will be None if our key was empty (digest authentication disabled).
session_id: StringImplementations§
source§impl<S: Socket> Connection<S>
impl<S: Socket> Connection<S>
source§impl<S: SocketSend> Connection<S>
impl<S: SocketSend> Connection<S>
source§impl<S: SocketRecv> Connection<S>
impl<S: SocketRecv> Connection<S>
pub async fn read(&mut self) -> Result<JupyterMessage, Error>
Auto Trait Implementations§
impl<S> Freeze for Connection<S>where
S: Freeze,
impl<S> RefUnwindSafe for Connection<S>where
S: RefUnwindSafe,
impl<S> Send for Connection<S>where
S: Send,
impl<S> Sync for Connection<S>where
S: Sync,
impl<S> Unpin for Connection<S>where
S: Unpin,
impl<S> UnwindSafe for Connection<S>where
S: UnwindSafe,
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