[−][src]Struct lucet_runtime_internals::instance::execution::KillSwitch
An object that can be used to terminate an instance's execution from a separate thread.
Methods
impl KillSwitch
[src]
pub fn terminate(&self) -> Result<KillSuccess, KillError>
[src]
Signal the instance associated with this KillSwitch
to stop, if possible.
The returned Result
only describes the behavior taken by this function, not necessarily
what caused the associated instance to stop.
As an example, if a KillSwitch
fires, sending a SIGALRM to an instance at the same
moment it begins handling a SIGSEGV which is determined to be fatal, the instance may
stop with State::Faulted
before actually handling the SIGALRM we'd send here. So the
host code will see State::Faulted
as an instance state, where KillSwitch::terminate
would return Ok(KillSuccess::Signalled)
.
Auto Trait Implementations
impl !RefUnwindSafe for KillSwitch
impl Send for KillSwitch
impl Sync for KillSwitch
impl Unpin for KillSwitch
impl !UnwindSafe for KillSwitch
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,