Trait ipld_core::codec::Links

source ·
pub trait Links {
    type LinksError;

    // Required method
    fn links(
        bytes: &[u8]
    ) -> Result<impl Iterator<Item = Cid>, Self::LinksError>;
}
Expand description

Trait for returning the links of a serialized IPLD data.

Required Associated Types§

source

type LinksError

The error that is returned if the link extraction fails.

Required Methods§

Return all links (CIDs) that the given encoded data contains.

Object Safety§

This trait is not object safe.

Implementors§