pub enum SessionCommand {
Shutdown,
Message(SessionMessage),
SetModuleReader(Box<dyn GuestModuleReader>),
}Expand description
Commands sent to a session thread
Variants§
Shutdown
Shut down the session and destroy the isolate
Message(SessionMessage)
Forward a typed session message to the session thread for processing
SetModuleReader(Box<dyn GuestModuleReader>)
Install a direct module-source reader on the session thread. Carried as a live object over the in-process command channel (NOT a serialized frame), so subsequent module loads on this thread read source directly instead of round-tripping the bridge. Sent just before an Execute message.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionCommand
impl !Sync for SessionCommand
impl !UnwindSafe for SessionCommand
impl Freeze for SessionCommand
impl Send for SessionCommand
impl Unpin for SessionCommand
impl UnsafeUnpin for SessionCommand
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