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<SnapshotTrigger, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotTrigger, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<&ArchivedJournalSnapshotTriggerV1> for SnapshotTrigger
impl From<&ArchivedJournalSnapshotTriggerV1> for SnapshotTrigger
Source§fn from(val: &ArchivedJournalSnapshotTriggerV1) -> SnapshotTrigger
fn from(val: &ArchivedJournalSnapshotTriggerV1) -> SnapshotTrigger
Source§impl From<JournalSnapshotTriggerV1> for SnapshotTrigger
impl From<JournalSnapshotTriggerV1> for SnapshotTrigger
Source§fn from(val: JournalSnapshotTriggerV1) -> SnapshotTrigger
fn from(val: JournalSnapshotTriggerV1) -> SnapshotTrigger
Source§impl From<SnapshotTrigger> for JournalSnapshotTriggerV1
impl From<SnapshotTrigger> for JournalSnapshotTriggerV1
Source§fn from(val: SnapshotTrigger) -> JournalSnapshotTriggerV1
fn from(val: SnapshotTrigger) -> JournalSnapshotTriggerV1
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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§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§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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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