[−][src]Struct ipfs_embed::Ipfs
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]
P: StoreParams + Unpin + 'static,
S: Storage<P>,
N: Network<P>,
Ipld: Decode<P::Codecs>,
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
P: StoreParams + Unpin + 'static,
S: Storage<P>,
N: Network<P>,
Ipld: Decode<P::Codecs>,
type Params = P
Store parameters.
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<Block<P>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<Block<P>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn commit<'life0, 'async_trait>(
&'life0 self,
tx: Transaction<P>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
tx: Transaction<P>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn insert<'life0, 'async_trait>(
&'life0 self,
block: Block<Self::Params>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
Ipld: Decode<<Self::Params as StoreParams>::Codecs>,
[src]
&'life0 self,
block: Block<Self::Params>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
Ipld: Decode<<Self::Params as StoreParams>::Codecs>,
#[must_use]fn unpin<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn query<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 DagPath<'life2>
) -> Pin<Box<dyn Future<Output = Result<Ipld, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Ipld: Decode<<Self::Params as StoreParams>::Codecs>,
[src]
&'life0 self,
path: &'life1 DagPath<'life2>
) -> Pin<Box<dyn Future<Output = Result<Ipld, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Ipld: Decode<<Self::Params as StoreParams>::Codecs>,
#[must_use]fn sync<'life0, 'async_trait>(
&'life0 self,
old: Option<Cid>,
new: Cid
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
Ipld: Decode<<Self::Params as StoreParams>::Codecs>,
[src]
&'life0 self,
old: Option<Cid>,
new: Cid
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
Ipld: Decode<<Self::Params as StoreParams>::Codecs>,
#[must_use]fn flush<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Self: 'async_trait,
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,
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,
N: Send + Sync,
P: Send + Sync,
S: Send + Sync,
impl<P, S, N> Unpin for Ipfs<P, S, N> where
P: Unpin,
P: Unpin,
impl<P, S, N> !UnwindSafe for Ipfs<P, S, N>
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>,