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
Source§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§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> 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.