pub struct RepoLayerSource<ObjectID: FsVerityHashValue> {
pub repo: Arc<Repository<ObjectID>>,
pub layer_verity: ObjectID,
}Expand description
LayerSource implementation backed by a composefs Repository.
The objects directory is the single real diff-dir (chain index 0).
Fields§
§repo: Arc<Repository<ObjectID>>The repository from which to serve the layer.
layer_verity: ObjectIDfs-verity hash of the layer splitstream to serve.
Trait Implementations§
Source§impl<ObjectID> Debug for RepoLayerSource<ObjectID>where
ObjectID: FsVerityHashValue + Debug,
impl<ObjectID> Debug for RepoLayerSource<ObjectID>where
ObjectID: FsVerityHashValue + Debug,
Source§impl<ObjectID> LayerSource for RepoLayerSource<ObjectID>where
ObjectID: FsVerityHashValue,
impl<ObjectID> LayerSource for RepoLayerSource<ObjectID>where
ObjectID: FsVerityHashValue,
Auto Trait Implementations§
impl<ObjectID> Freeze for RepoLayerSource<ObjectID>where
ObjectID: Freeze,
impl<ObjectID> RefUnwindSafe for RepoLayerSource<ObjectID>where
ObjectID: RefUnwindSafe,
impl<ObjectID> Send for RepoLayerSource<ObjectID>
impl<ObjectID> Sync for RepoLayerSource<ObjectID>
impl<ObjectID> Unpin for RepoLayerSource<ObjectID>
impl<ObjectID> UnsafeUnpin for RepoLayerSource<ObjectID>where
ObjectID: UnsafeUnpin,
impl<ObjectID> UnwindSafe for RepoLayerSource<ObjectID>where
ObjectID: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more