[][src]Struct ipfs_embed::Ipfs

pub struct Ipfs<P, S, N> { /* fields omitted */ }

Implementations

impl<P, S, N> Ipfs<P, S, N> where
    P: StoreParams + Unpin + 'static,
    S: Storage<P>,
    N: Network<P>,
    Ipld: Decode<P::Codecs>, 
[src]

pub fn new(storage: Arc<S>, network: Arc<N>, timeout: Duration) -> Self[src]

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

pub fn external_addresses(&self) -> Vec<Multiaddr>[src]

Trait Implementations

impl<P, S, N> Clone for Ipfs<P, S, N>[src]

impl<P, S, N> Store for Ipfs<P, S, N> where
    P: StoreParams + Unpin + 'static,
    S: Storage<P>,
    N: Network<P>,
    Ipld: Decode<P::Codecs>, 
[src]

type Params = P

Store parameters.

Auto Trait Implementations

impl<P, S, N> !RefUnwindSafe for Ipfs<P, S, N>

impl<P, S, N> Send for Ipfs<P, S, N> where
    N: Send + Sync,
    P: Send,
    S: Send + Sync

impl<P, S, N> Sync for Ipfs<P, S, N> where
    N: Send + Sync,
    P: Send + Sync,
    S: Send + Sync

impl<P, S, N> Unpin for Ipfs<P, S, N> where
    P: Unpin

impl<P, S, N> !UnwindSafe for Ipfs<P, S, N>

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>,