[−][src]Struct ipfs_embed::Store
Implementations
impl Store
[src]
pub fn new(config: Config) -> Result<Self, Error>
[src]
pub fn peer_id(&self) -> &PeerId
[src]
pub fn address(&self) -> &Multiaddr
[src]
pub fn blocks(&self) -> impl Iterator<Item = Result<Cid, Error>>
[src]
pub fn metadata(&self, cid: &Cid) -> Result<Metadata, Error>
[src]
pub fn get_local(&self, cid: &Cid) -> Result<Option<IVec>, Error>
[src]
Trait Implementations
impl AliasStore for Store
[src]
fn alias<'a>(
&'a self,
alias: &'a [u8],
cid: &'a Cid,
visibility: Visibility
) -> StoreResult<'a, ()>
[src]
&'a self,
alias: &'a [u8],
cid: &'a Cid,
visibility: Visibility
) -> StoreResult<'a, ()>
fn unalias<'a>(&'a self, alias: &'a [u8]) -> StoreResult<'a, ()>
[src]
fn resolve<'a>(&'a self, alias: &'a [u8]) -> StoreResult<'a, Option<Cid>>
[src]
impl Clone for Store
[src]
impl Debug for Store
[src]
impl ReadonlyStore for Store
[src]
impl Store for Store
[src]
fn insert<'a>(
&'a self,
cid: &'a Cid,
data: Box<[u8]>,
visibility: Visibility
) -> StoreResult<'a, ()>
[src]
&'a self,
cid: &'a Cid,
data: Box<[u8]>,
visibility: Visibility
) -> StoreResult<'a, ()>
fn insert_batch<'a>(
&'a self,
batch: Vec<Block>,
visibility: Visibility
) -> StoreResult<'a, Cid>
[src]
&'a self,
batch: Vec<Block>,
visibility: Visibility
) -> StoreResult<'a, Cid>
fn flush(&self) -> StoreResult<()>
[src]
fn unpin<'a>(&'a self, cid: &'a Cid) -> StoreResult<'a, ()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl !UnwindSafe for Store
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,