Enum SnapshotTrigger
pub enum SnapshotTrigger {
Show 14 variants
Idle,
FirstListen,
FirstEnviron,
FirstStdin,
FirstSigint,
PeriodicInterval,
Sigint,
Sigalrm,
Sigtstp,
Sigstop,
NonDeterministicCall,
Bootstrap,
Transaction,
Explicit,
}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
Explicit
Explicitly requested by the guest module
Implementations§
§impl SnapshotTrigger
impl SnapshotTrigger
Trait Implementations§
§impl Clone for SnapshotTrigger
impl Clone for SnapshotTrigger
§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 more§impl Debug for SnapshotTrigger
impl Debug for SnapshotTrigger
§impl<'de> Deserialize<'de> for SnapshotTrigger
impl<'de> Deserialize<'de> for SnapshotTrigger
§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>,
§impl Display for SnapshotTrigger
impl Display for SnapshotTrigger
§impl From<&ArchivedJournalSnapshotTriggerV1> for SnapshotTrigger
impl From<&ArchivedJournalSnapshotTriggerV1> for SnapshotTrigger
§fn from(val: &ArchivedJournalSnapshotTriggerV1) -> SnapshotTrigger
fn from(val: &ArchivedJournalSnapshotTriggerV1) -> SnapshotTrigger
§impl From<JournalSnapshotTriggerV1> for SnapshotTrigger
impl From<JournalSnapshotTriggerV1> for SnapshotTrigger
§fn from(val: JournalSnapshotTriggerV1) -> SnapshotTrigger
fn from(val: JournalSnapshotTriggerV1) -> SnapshotTrigger
§impl From<SnapshotTrigger> for JournalSnapshotTriggerV1
impl From<SnapshotTrigger> for JournalSnapshotTriggerV1
§fn from(val: SnapshotTrigger) -> JournalSnapshotTriggerV1
fn from(val: SnapshotTrigger) -> JournalSnapshotTriggerV1
§impl From<SnapshotTrigger> for SnapshotTrigger
impl From<SnapshotTrigger> for SnapshotTrigger
§fn from(value: SnapshotTrigger) -> SnapshotTrigger
fn from(value: SnapshotTrigger) -> SnapshotTrigger
§impl FromStr for SnapshotTrigger
impl FromStr for SnapshotTrigger
§type Err = <SnapshotTrigger as FromStr>::Err
type Err = <SnapshotTrigger as FromStr>::Err
§fn from_str(
s: &str,
) -> Result<SnapshotTrigger, <SnapshotTrigger as FromStr>::Err>
fn from_str( s: &str, ) -> Result<SnapshotTrigger, <SnapshotTrigger as FromStr>::Err>
s to return a value of this type. Read more§impl Hash for SnapshotTrigger
impl Hash for SnapshotTrigger
§impl Ord for SnapshotTrigger
impl Ord for SnapshotTrigger
§impl PartialEq for SnapshotTrigger
impl PartialEq for SnapshotTrigger
§impl PartialOrd for SnapshotTrigger
impl PartialOrd for SnapshotTrigger
§impl Serialize for SnapshotTrigger
impl Serialize for SnapshotTrigger
§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§
§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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.§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> ⓘ
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
500 Internal Server responses. Read more§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.