[][src]Struct ipfs_sqlite_block_store::cache::BlockInfo

pub struct BlockInfo { /* fields omitted */ }

Information about a block that is quick to gather

This is what is available for making decisions about whether to cache a block

Implementations

impl BlockInfo[src]

pub fn new(id: i64, cid: &Cid, data: &[u8]) -> Self[src]

pub fn id(&self) -> i64[src]

pub fn codec(&self) -> u64[src]

pub fn block_len(&self) -> usize[src]

Trait Implementations

impl Clone for BlockInfo[src]

impl Copy for BlockInfo[src]

impl Debug for BlockInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> References<RawCodec> for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.