[][src]Struct ipfs_embed::Store

pub struct Store<C: Codec, M: MultihashDigest> { /* fields omitted */ }

Implementations

impl<C: Codec, M: MultihashDigest> Store<C, M>[src]

pub fn new(config: Config) -> Result<Self>[src]

pub fn peer_id(&self) -> &PeerId[src]

pub fn address(&self) -> &Multiaddr[src]

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

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

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

Trait Implementations

impl<C: Codec, M: MultihashDigest> AliasStore for Store<C, M>[src]

impl<C: Clone + Codec, M: Clone + MultihashDigest> Clone for Store<C, M>[src]

impl<C: Debug + Codec, M: Debug + MultihashDigest> Debug for Store<C, M>[src]

impl<C: Codec, M: MultihashDigest> ReadonlyStore for Store<C, M>[src]

type Codec = C

The codec type of the store.

type Multihash = M

The multihash type of the store.

impl<C: Codec, M: MultihashDigest> Store for Store<C, M>[src]

Auto Trait Implementations

impl<C, M> !RefUnwindSafe for Store<C, M>

impl<C, M> Send for Store<C, M>

impl<C, M> Sync for Store<C, M>

impl<C, M> Unpin for Store<C, M> where
    M: Unpin

impl<C, M> !UnwindSafe for Store<C, M>

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,