Enum wasmer_journal::snapshot::SnapshotTrigger
source · 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§fn eq(&self, other: &SnapshotTrigger) -> bool
fn eq(&self, other: &SnapshotTrigger) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SnapshotTrigger
impl PartialOrd for SnapshotTrigger
source§fn partial_cmp(&self, other: &SnapshotTrigger) -> Option<Ordering>
fn partial_cmp(&self, other: &SnapshotTrigger) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more