pub enum HandlerAction {
Continue,
Exit,
Undo,
}Expand description
The action of a DECLARE … HANDLER — what happens after the handler body runs.
A tag (no meta): the keyword’s span is subsumed by the enclosing
Declaration::Handler, exactly as super::TriggerTiming rides its parent’s span.
Variants§
Continue
CONTINUE — resume execution after the statement that raised the condition.
Exit
EXIT — leave the compound block the handler is declared in.
Undo
UNDO — roll back and leave (parsed for completeness; the server restricts it).
Trait Implementations§
Source§impl Clone for HandlerAction
impl Clone for HandlerAction
Source§fn clone(&self) -> HandlerAction
fn clone(&self) -> HandlerAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HandlerAction
Source§impl Debug for HandlerAction
impl Debug for HandlerAction
Source§impl<'de> Deserialize<'de> for HandlerAction
impl<'de> Deserialize<'de> for HandlerAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HandlerAction
Source§impl Hash for HandlerAction
impl Hash for HandlerAction
Source§impl PartialEq for HandlerAction
impl PartialEq for HandlerAction
Source§impl Render for HandlerAction
impl Render for HandlerAction
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for HandlerAction
impl Serialize for HandlerAction
impl StructuralPartialEq for HandlerAction
Auto Trait Implementations§
impl Freeze for HandlerAction
impl RefUnwindSafe for HandlerAction
impl Send for HandlerAction
impl Sync for HandlerAction
impl Unpin for HandlerAction
impl UnsafeUnpin for HandlerAction
impl UnwindSafe for HandlerAction
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