pub struct Blobs<S> { /* private fields */ }
Available on crate feature
downloader
only.Implementations§
Source§impl<S: Store> Blobs<S>
impl<S: Store> Blobs<S>
pub fn new_with_events( store: S, rt: LocalPoolHandle, events: EventSender, downloader: Downloader, ) -> Self
pub fn store(&self) -> &S
pub async fn batches(&self) -> MutexGuard<'_, BlobBatches>
pub async fn download( &self, endpoint: Endpoint, req: BlobDownloadRequest, progress: AsyncChannelProgressSender<DownloadProgress>, ) -> Result<()>
Trait Implementations§
Source§impl<S: Store> ProtocolHandler for Blobs<S>
impl<S: Store> ProtocolHandler for Blobs<S>
Source§fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>
fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>
Handle an incoming connection. Read more
Auto Trait Implementations§
impl<S> !Freeze for Blobs<S>
impl<S> !RefUnwindSafe for Blobs<S>
impl<S> Send for Blobs<S>where
S: Send,
impl<S> Sync for Blobs<S>where
S: Sync,
impl<S> Unpin for Blobs<S>where
S: Unpin,
impl<S> !UnwindSafe for Blobs<S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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