mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:21:38 +00:00
Thread InstanceSnapshotContext through all SnapshotMiddleware
This commit is contained in:
parent
6d38a785ed
commit
f0cd4333c3
12 changed files with 131 additions and 52 deletions
|
|
@ -7,13 +7,14 @@ use crate::{
|
|||
snapshot::InstanceSnapshot,
|
||||
};
|
||||
|
||||
use super::error::SnapshotError;
|
||||
use super::{context::InstanceSnapshotContext, error::SnapshotError};
|
||||
|
||||
pub type SnapshotInstanceResult<'a> = Result<Option<InstanceSnapshot<'a>>, SnapshotError>;
|
||||
pub type SnapshotFileResult = Option<(String, ImfsSnapshot)>;
|
||||
|
||||
pub trait SnapshotMiddleware {
|
||||
fn from_imfs<F: ImfsFetcher>(
|
||||
context: &InstanceSnapshotContext,
|
||||
imfs: &mut Imfs<F>,
|
||||
entry: &ImfsEntry,
|
||||
) -> SnapshotInstanceResult<'static>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue