Struct iroh_blobs::net_protocol::BlobBatches
source · pub struct BlobBatches { /* private fields */ }
Available on crate feature
downloader
only.Expand description
Keeps track of all the currently active batch operations of the blobs api.
Implementations§
source§impl BlobBatches
impl BlobBatches
sourcepub fn store(&mut self, batch: BatchId, tt: TempTag)
pub fn store(&mut self, batch: BatchId, tt: TempTag)
Store a temp tag in a batch identified by a batch id.
sourcepub fn remove_one(
&mut self,
batch: BatchId,
content: &HashAndFormat
) -> Result<()>
pub fn remove_one( &mut self, batch: BatchId, content: &HashAndFormat ) -> Result<()>
Remove a tag from a batch.
Trait Implementations§
source§impl Debug for BlobBatches
impl Debug for BlobBatches
source§impl Default for BlobBatches
impl Default for BlobBatches
source§fn default() -> BlobBatches
fn default() -> BlobBatches
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlobBatches
impl !RefUnwindSafe for BlobBatches
impl Send for BlobBatches
impl Sync for BlobBatches
impl Unpin for BlobBatches
impl !UnwindSafe for BlobBatches
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