Struct rust_ipfs::repo::RepoInsertPin
source · pub struct RepoInsertPin { /* private fields */ }
Implementations§
source§impl RepoInsertPin
impl RepoInsertPin
pub fn new(repo: Repo, cid: Cid) -> Self
sourcepub fn providers(self, providers: &[PeerId]) -> Self
pub fn providers(self, providers: &[PeerId]) -> Self
List of peers that may contain the block to pin
sourcepub fn timeout(self, duration: Duration) -> Self
pub fn timeout(self, duration: Duration) -> Self
Duration to fetch the block from the network before timing out
sourcepub fn exit_on_error(self) -> Self
pub fn exit_on_error(self) -> Self
Trait Implementations§
source§impl IntoFuture for RepoInsertPin
impl IntoFuture for RepoInsertPin
§type IntoFuture = Pin<Box<dyn Future<Output = <RepoInsertPin as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <RepoInsertPin as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for RepoInsertPin
impl !RefUnwindSafe for RepoInsertPin
impl Send for RepoInsertPin
impl Sync for RepoInsertPin
impl Unpin for RepoInsertPin
impl !UnwindSafe for RepoInsertPin
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more