Struct iroh_blobs::net_protocol::Blobs
source · 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, endpoint: Endpoint ) -> 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<()>
source§impl<D: Store> Blobs<D>
impl<D: Store> Blobs<D>
sourcepub async fn handle_rpc_request<C>(
self: Arc<Self>,
msg: Request,
chan: RpcChannel<RpcService, C>
) -> Result<(), RpcServerError<C>>where
C: ChannelTypes<RpcService>,
Available on crate feature rpc
only.
pub async fn handle_rpc_request<C>(
self: Arc<Self>,
msg: Request,
chan: RpcChannel<RpcService, C>
) -> Result<(), RpcServerError<C>>where
C: ChannelTypes<RpcService>,
rpc
only.Handle an RPC request
Available on crate feature rpc
only.
rpc
only.Handle a tags request
sourcepub async fn handle_blobs_request<C>(
self: Arc<Self>,
msg: Request,
chan: RpcChannel<RpcService, C>
) -> Result<(), RpcServerError<C>>where
C: ChannelTypes<RpcService>,
Available on crate feature rpc
only.
pub async fn handle_blobs_request<C>(
self: Arc<Self>,
msg: Request,
chan: RpcChannel<RpcService, C>
) -> Result<(), RpcServerError<C>>where
C: ChannelTypes<RpcService>,
rpc
only.Handle a blobs request
Trait Implementations§
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§
§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