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:
Florian Klink 2025-03-13 16:46:47 +01:00 committed by clbot
parent 4535824166
commit 9267c1edf5

View file

@ -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.