refactor(tvix/castore/directory): allow DirectoryPutter to have refs
We can require DirectoryPutters to not outlive the DirectoryServices they originated from. This allows borrowing some data from there. Change-Id: I82a4c17b06b3b0ae5cf84d35561f1aae049a2cdc Reviewed-on: https://cl.tvl.fyi/c/depot/+/13259 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: edef <edef@edef.eu>
This commit is contained in:
parent
4535824166
commit
9267c1edf5
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ pub trait DirectoryService: Send + Sync {
|
||||||
|
|
||||||
/// Allows persisting a closure of [Directory], which is a graph of
|
/// Allows persisting a closure of [Directory], which is a graph of
|
||||||
/// connected Directory messages.
|
/// connected Directory messages.
|
||||||
fn put_multiple_start(&self) -> Box<dyn DirectoryPutter>;
|
fn put_multiple_start(&self) -> Box<dyn DirectoryPutter + '_>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Provides a handle to put a closure of connected [Directory] elements.
|
/// Provides a handle to put a closure of connected [Directory] elements.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue