pub(crate) struct BlobDirContents<'a> {
inner: Vec<PathBuf>,
context: &'a Context,
}
Expand description
All files in the blobdir.
This exists so we can have a BlobDirIter
which needs something to own the data of
it’s &Path
. Use BlobDirContents::iter
to create the iterator.
Additionally pre-allocating this means we get a length for progress report.
Fields§
§inner: Vec<PathBuf>
§context: &'a Context
Implementations§
source§impl<'a> BlobDirContents<'a>
impl<'a> BlobDirContents<'a>
pub(crate) async fn new(context: &'a Context) -> Result<BlobDirContents<'a>>
pub(crate) fn iter(&self) -> BlobDirIter<'_> ⓘ
Auto Trait Implementations§
impl<'a> Freeze for BlobDirContents<'a>
impl<'a> !RefUnwindSafe for BlobDirContents<'a>
impl<'a> Send for BlobDirContents<'a>
impl<'a> Sync for BlobDirContents<'a>
impl<'a> Unpin for BlobDirContents<'a>
impl<'a> !UnwindSafe for BlobDirContents<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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