pub enum SnapshotTrigger {
Show 13 variants
Idle,
FirstListen,
FirstEnviron,
FirstStdin,
FirstSigint,
PeriodicInterval,
Sigint,
Sigalrm,
Sigtstp,
Sigstop,
NonDeterministicCall,
Bootstrap,
Transaction,
}
Expand description
Various triggers that will cause the runtime to take snapshot of the WASM state and store it in the snapshot file.
Variants§
Idle
Triggered when all the threads in the process goes idle
FirstListen
Triggered when a listen syscall is invoked on a socket for the first time
FirstEnviron
Triggered on reading the environment variables for the first time
FirstStdin
Triggered when the process reads stdin for the first time
FirstSigint
Issued on the first interrupt signal (Ctrl + C) the process receives, after that normal CTRL-C will apply.
PeriodicInterval
Triggered periodically based on a interval (default 10 seconds) which can be specified using the snapshot-interval
option
Sigint
Issued if the user sends an interrupt signal (Ctrl + C).
Sigalrm
Alarm clock signal (used for timers)
Sigtstp
The SIGTSTP signal is sent to a process by its controlling terminal to request it to stop temporarily. It is commonly initiated by the user pressing Ctrl-Z.
Sigstop
The SIGSTOP signal instructs the operating system to stop a process for later resumption.
NonDeterministicCall
When a non-determinstic call is made
Bootstrap
Bootstrapping process
Transaction
Transaction
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotTrigger
impl Clone for SnapshotTrigger
Source§fn clone(&self) -> SnapshotTrigger
fn clone(&self) -> SnapshotTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SnapshotTrigger
impl Debug for SnapshotTrigger
Source§impl<'de> Deserialize<'de> for SnapshotTrigger
impl<'de> Deserialize<'de> for SnapshotTrigger
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>,
Source§impl From<&ArchivedJournalSnapshotTriggerV1> for SnapshotTrigger
impl From<&ArchivedJournalSnapshotTriggerV1> for SnapshotTrigger
Source§fn from(val: &ArchivedJournalSnapshotTriggerV1) -> Self
fn from(val: &ArchivedJournalSnapshotTriggerV1) -> Self
Source§impl From<JournalSnapshotTriggerV1> for SnapshotTrigger
impl From<JournalSnapshotTriggerV1> for SnapshotTrigger
Source§fn from(val: JournalSnapshotTriggerV1) -> Self
fn from(val: JournalSnapshotTriggerV1) -> Self
Source§impl From<SnapshotTrigger> for JournalSnapshotTriggerV1
impl From<SnapshotTrigger> for JournalSnapshotTriggerV1
Source§fn from(val: SnapshotTrigger) -> Self
fn from(val: SnapshotTrigger) -> Self
Source§impl FromStr for SnapshotTrigger
impl FromStr for SnapshotTrigger
Source§impl Hash for SnapshotTrigger
impl Hash for SnapshotTrigger
Source§impl Ord for SnapshotTrigger
impl Ord for SnapshotTrigger
Source§fn cmp(&self, other: &SnapshotTrigger) -> Ordering
fn cmp(&self, other: &SnapshotTrigger) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SnapshotTrigger
impl PartialEq for SnapshotTrigger
Source§impl PartialOrd for SnapshotTrigger
impl PartialOrd for SnapshotTrigger
Source§impl Serialize for SnapshotTrigger
impl Serialize for SnapshotTrigger
impl Copy for SnapshotTrigger
impl Eq for SnapshotTrigger
impl StructuralPartialEq for SnapshotTrigger
Auto Trait Implementations§
impl Freeze for SnapshotTrigger
impl RefUnwindSafe for SnapshotTrigger
impl Send for SnapshotTrigger
impl Sync for SnapshotTrigger
impl Unpin for SnapshotTrigger
impl UnwindSafe for SnapshotTrigger
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.