pub struct DagGet { /* private fields */ }
Implementations§
source§impl DagGet
impl DagGet
pub fn new(dag: IpldDag) -> Self
sourcepub fn timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Timeout duration to resolve a block before returning an error
sourcepub fn deserialized<D: DeserializeOwned>(self) -> DagGetDeserialize<D>
pub fn deserialized<D: DeserializeOwned>(self) -> DagGetDeserialize<D>
Deserialize to a serde-compatible object
Trait Implementations§
source§impl IntoFuture for DagGet
impl IntoFuture for DagGet
§type Output = Result<Ipld, ResolveError>
type Output = Result<Ipld, ResolveError>
The output that the future will produce on completion.
§type IntoFuture = Pin<Box<dyn Future<Output = <DagGet as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <DagGet 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 DagGet
impl !RefUnwindSafe for DagGet
impl Send for DagGet
impl Sync for DagGet
impl Unpin for DagGet
impl !UnwindSafe for DagGet
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