pub struct ViewImages { /* private fields */ }Expand description
Every lane’s images of the cell it runs now, and the model each lane’s results go to.
Implementations§
Source§impl ViewImages
impl ViewImages
pub fn new( model: Model, cwd: PathBuf, agent_dir: PathBuf, project_trusted: bool, ) -> ViewImages
Sourcepub fn set_model(&self, lane: Option<&str>, model: Model)
pub fn set_model(&self, lane: Option<&str>, model: Model)
The model lane’s results go to from now on (None: the root lane, whose model is the session’s).
Sourcepub fn display(&self, lane: &str, png: Vec<u8>, line: String)
pub fn display(&self, lane: &str, png: Vec<u8>, line: String)
A PNG lane’s running cell shows the user only; line is what the model reads instead.
Sourcepub fn take_display(&self, lane: &str) -> Vec<DisplayImage>
pub fn take_display(&self, lane: &str) -> Vec<DisplayImage>
The display-only images of lane’s cell (its cell ended).
Sourcepub fn attach(
&self,
lane: &str,
payload: &Map<String, Value>,
) -> Result<Value, String>
pub fn attach( &self, lane: &str, payload: &Map<String, Value>, ) -> Result<Value, String>
One rlm.view_image request of lane’s running cell.
Sourcepub fn take(&self, lane: &str) -> Option<CellImages>
pub fn take(&self, lane: &str) -> Option<CellImages>
The images lane’s cell attached (its cell ended).
Auto Trait Implementations§
impl !Freeze for ViewImages
impl Forget for ViewImages
impl Move for ViewImages
impl RefUnwindSafe for ViewImages
impl Send for ViewImages
impl Sync for ViewImages
impl Unpin for ViewImages
impl UnsafeUnpin for ViewImages
impl UnwindSafe for ViewImages
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