pub struct Handlers {
pub conditions: HashMap<Condition, Handler>,
pub stack: Vec<(HashMap<Condition, Handler>, Option<AbendExit>)>,
pub abend: Option<AbendExit>,
}Expand description
HANDLE CONDITION, IGNORE CONDITION and HANDLE ABEND, which belong to the logical level: every program CALLed at it shares them (C234).
Fields§
§conditions: HashMap<Condition, Handler>§stack: Vec<(HashMap<Condition, Handler>, Option<AbendExit>)>What each PUSH HANDLE at this logical level suspended.
abend: Option<AbendExit>Implementations§
Source§impl Handlers
impl Handlers
Sourcepub fn push(&mut self)
pub fn push(&mut self)
PUSH HANDLE: suspends HANDLE CONDITION, IGNORE CONDITION and HANDLE ABEND until pop.
Sourcepub fn pop(&mut self) -> bool
pub fn pop(&mut self) -> bool
POP HANDLE: false when no PUSH HANDLE at this logical level is left to undo.
Sourcepub fn lend(&mut self, pushes: bool) -> Handlers
pub fn lend(&mut self, pushes: bool) -> Handlers
The handlers a CALLed program starts with: the level’s, which a dynamic CALL first suspends with the PUSH HANDLE of CBLPSHPOP(ON) (C234).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handlers
impl RefUnwindSafe for Handlers
impl Send for Handlers
impl Sync for Handlers
impl Unpin for Handlers
impl UnsafeUnpin for Handlers
impl UnwindSafe for Handlers
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