pub enum SignalBehavior {
Default,
Continue,
Terminate,
}
Expand description
The value returned by
Instance.signal_handler
to determine the
outcome of a handled signal.
Variants§
Default
Use default behavior, which switches back to the host with State::Fault
populated.
Continue
Override default behavior and cause the instance to continue.
Terminate
Override default behavior and cause the instance to terminate.
Trait Implementations§
Source§impl From<&lucet_signal_behavior> for SignalBehavior
impl From<&lucet_signal_behavior> for SignalBehavior
Source§fn from(sb: &lucet_signal_behavior) -> SignalBehavior
fn from(sb: &lucet_signal_behavior) -> SignalBehavior
Converts to this type from the input type.
Source§impl From<lucet_signal_behavior> for SignalBehavior
impl From<lucet_signal_behavior> for SignalBehavior
Source§fn from(sb: lucet_signal_behavior) -> SignalBehavior
fn from(sb: lucet_signal_behavior) -> SignalBehavior
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignalBehavior
impl RefUnwindSafe for SignalBehavior
impl Send for SignalBehavior
impl Sync for SignalBehavior
impl Unpin for SignalBehavior
impl UnwindSafe for SignalBehavior
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