pub type FetchItem = Result<(Cid, Bytes), BitswapError>;Expand description
A fetched block or request error. Block bytes are Bytes because a block may be
delivered to multiple concurrent requests without copying.
Aliased Type§
pub enum FetchItem {
Ok((Cid<64>, Bytes)),
Err(BitswapError),
}Variants§
Ok((Cid<64>, Bytes))
Contains the success value
Err(BitswapError)
Contains the error value