Struct wasmer_config::app::AppConfigCapabilityInstaBootV1
source · pub struct AppConfigCapabilityInstaBootV1 {
pub requests: Vec<HttpRequest>,
pub max_age: Option<String>,
}
Expand description
Enables accelerated instance boot times with startup snapshots.
How it works: The Edge runtime will create a pre-initialized snapshot of apps that is ready to serve requests Your app will then restore from the generated snapshot, which has the potential to significantly speed up cold starts.
To drive the initialization, multiple http requests can be specified. All the specified requests will be sent to the app before the snapshot is created, allowing the app to pre-load files, pre initialize caches, …
Fields§
§requests: Vec<HttpRequest>
HTTP requests to perform during startup snapshot creation. Apps can perform all the appropriate warmup logic in these requests.
NOTE: if no requests are configured, then a single HTTP request to ‘/’ will be performed instead.
max_age: Option<String>
Maximum age of snapshots.
Format: 5m, 1h, 2d, …
After the specified time new snapshots will be created, and the old ones discarded.
Trait Implementations§
source§impl Clone for AppConfigCapabilityInstaBootV1
impl Clone for AppConfigCapabilityInstaBootV1
source§fn clone(&self) -> AppConfigCapabilityInstaBootV1
fn clone(&self) -> AppConfigCapabilityInstaBootV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for AppConfigCapabilityInstaBootV1
impl<'de> Deserialize<'de> for AppConfigCapabilityInstaBootV1
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 JsonSchema for AppConfigCapabilityInstaBootV1
impl JsonSchema for AppConfigCapabilityInstaBootV1
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for AppConfigCapabilityInstaBootV1
impl PartialEq for AppConfigCapabilityInstaBootV1
source§fn eq(&self, other: &AppConfigCapabilityInstaBootV1) -> bool
fn eq(&self, other: &AppConfigCapabilityInstaBootV1) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for AppConfigCapabilityInstaBootV1
impl StructuralPartialEq for AppConfigCapabilityInstaBootV1
Auto Trait Implementations§
impl Freeze for AppConfigCapabilityInstaBootV1
impl RefUnwindSafe for AppConfigCapabilityInstaBootV1
impl Send for AppConfigCapabilityInstaBootV1
impl Sync for AppConfigCapabilityInstaBootV1
impl Unpin for AppConfigCapabilityInstaBootV1
impl UnwindSafe for AppConfigCapabilityInstaBootV1
Blanket Implementations§
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§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> 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.