Crate crate_swap
source ·Expand description
Defines functions and types for crate swapping, used in live evolution and fault recovery.
Structs
- This struct is used to specify the details of a crate-swapping operation, in which an “old” crate is replaced with a “new” crate that is then used in place of that old crate. The old crate is removed from its old
CrateNamespace
while the new crate is added to the newCrateNamespace
; typically the old and new namespaces are the same.
Enums
- The possible errors that can occur when trying to create a valid
SwapRequest
.
Functions
- Clears the cache of unloaded (swapped-out) crates saved from previous crate swapping operations.
- Swaps in new crates that can optionally replace existing crates in this
CrateNamespace
.
Type Aliases
- A state transfer function is an arbitrary function called when swapping crates.
- A list of one or more
SwapRequest
s that is used by theswap_crates
function.