Struct ipfs_embed_sqlite::StorageService [−][src]
Implementations
impl<S: StoreParams> StorageService<S> where
Ipld: References<S::Codecs>,
[src]
Ipld: References<S::Codecs>,
pub fn open(
config: StorageConfig,
tx: UnboundedSender<StorageEvent>
) -> Result<Self>
[src]
config: StorageConfig,
tx: UnboundedSender<StorageEvent>
) -> Result<Self>
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]
&self,
temp: &TempPin,
iter: impl IntoIterator<Item = Cid> + Send + 'static
) -> Result<()>
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]
fn clone(&self) -> StorageService<S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<S> !RefUnwindSafe for StorageService<S>
[src]
impl<S> Send for StorageService<S>
[src]
impl<S> Sync for StorageService<S>
[src]
impl<S> Unpin for StorageService<S>
[src]
impl<S> !UnwindSafe for StorageService<S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> References<RawCodec> for T
pub fn references<R, E>(
_c: RawCodec,
_r: &mut R,
_set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
_c: RawCodec,
_r: &mut R,
_set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,