Thread InstanceSnapshotContext through all SnapshotMiddleware

This commit is contained in:
Lucien Greathouse 2019-10-10 11:44:33 -07:00
parent 6d38a785ed
commit f0cd4333c3
12 changed files with 131 additions and 52 deletions

View file

@ -1,7 +1,16 @@
#[derive(Debug)]
pub struct InstanceSnapshotContext {
/// Empty struct that will be used later to fill out required Lua state for
/// user plugins.
pub plugin_context: Option<()>,
}
impl Default for InstanceSnapshotContext {
fn default() -> Self {
Self {
plugin_context: None,
}
}
}
pub struct ImfsSnapshotContext;