syncweb-core 0.1.0

delay-tolerant web surfing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use iroh_blobs::api::Store as BlobApi;
use iroh_blobs::BlobsProtocol;

pub struct BlobStore {
    store: BlobApi,
}

impl BlobStore {
    pub fn new(protocol: &BlobsProtocol) -> Self {
        Self {
            store: protocol.store().clone(),
        }
    }

    pub fn inner(&self) -> &BlobApi {
        &self.store
    }
}