pub struct Scripted {
pub screen: Screen,
pub shown: Rc<RefCell<Vec<String>>>,
/* private fields */
}Expand description
A terminal driven by a screen script: each SEND is applied to the screen and its rendering kept
in shown; each RECEIVE plays the script up to its next AID key.
Fields§
§screen: Screen§shown: Rc<RefCell<Vec<String>>>Implementations§
Source§impl Scripted
impl Scripted
pub fn new( rows: usize, columns: usize, actions: Vec<Action>, page: &'static CodePage, ) -> Scripted
Sourcepub fn push_back(&mut self, record: Vec<u8>)
pub fn push_back(&mut self, record: Vec<u8>)
Keeps what an AID key sent for the next RECEIVE, as CICS keeps the input that starts a task.
Sourcepub fn discard_pending(&mut self)
pub fn discard_pending(&mut self)
Drops the input that started a task when the task never read it: a task’s terminal input ends with the task.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scripted
impl !Send for Scripted
impl !Sync for Scripted
impl !UnwindSafe for Scripted
impl Freeze for Scripted
impl Unpin for Scripted
impl UnsafeUnpin for Scripted
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