pub trait Pins: Send + Sync {
// Required methods
fn add<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid<64>,
options: Option<AddOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn rm<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid<64>,
options: Option<RmOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn ls<'life0, 'async_trait>(
&'life0 self,
options: Option<LsOptions>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Pin> + Send>>, HeliaError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn is_pinned<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid<64>,
options: Option<IsPinnedOptions>,
) -> Pin<Box<dyn Future<Output = Result<bool, HeliaError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}Expand description
Pinning interface
Required Methods§
Sourcefn add<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid<64>,
options: Option<AddOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn add<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid<64>,
options: Option<AddOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Pin a CID with the given options
Sourcefn rm<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid<64>,
options: Option<RmOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn rm<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid<64>,
options: Option<RmOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Remove a pin for the given CID