Struct ipfs_embed_sqlite::StorageService[][src]

pub struct StorageService<S: StoreParams> { /* fields omitted */ }

Implementations

impl<S: StoreParams> StorageService<S> where
    Ipld: References<S::Codecs>, 
[src]

pub fn open(
    config: StorageConfig,
    tx: UnboundedSender<StorageEvent>
) -> Result<Self>
[src]

pub fn create_temp_pin(&self) -> Result<TempPin>[src]

pub fn temp_pin(
    &self,
    temp: &TempPin,
    iter: impl IntoIterator<Item = Cid> + Send + 'static
) -> Result<()>
[src]

pub fn iter(&self) -> Result<impl Iterator<Item = Cid>>[src]

pub fn contains(&self, cid: &Cid) -> Result<bool>[src]

pub fn get(&self, cid: &Cid) -> Result<Option<Vec<u8>>>[src]

pub fn insert(&self, block: &Block<S>) -> Result<()>[src]

pub async fn evict(&self) -> Result<()>[src]

pub fn alias(&self, alias: &[u8], cid: Option<&Cid>) -> Result<()>[src]

pub fn resolve(&self, alias: &[u8]) -> Result<Option<Cid>>[src]

pub fn reverse_alias(&self, cid: &Cid) -> Result<Option<Vec<Vec<u8>>>>[src]

pub fn missing_blocks(&self, cid: &Cid) -> Result<Vec<Cid>>[src]

pub async fn flush(&self) -> Result<()>[src]

pub fn register_metrics(&self, registry: &Registry) -> Result<()>[src]

Trait Implementations

impl<S: Clone + StoreParams> Clone for StorageService<S>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> References<RawCodec> for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.