Enum vapcore_light::on_demand::request::HeaderRef[][src]

pub enum HeaderRef {
    Stored(Header),
    Unresolved(usizeField<H256>),
}

A block header to be used for verification. May be stored or an unresolved output of a prior request.

Variants

Stored(Header)

A stored header.

Unresolved(usizeField<H256>)

An unresolved header. The first item here is the index of the request which will return the header. The second is a back-reference pointing to a block hash which can be used to make requests until that header is resolved.

Implementations

impl HeaderRef[src]

pub fn as_ref(&self) -> Result<&Header, Error>[src]

Attempt to inspect the header.

Trait Implementations

impl Clone for HeaderRef[src]

impl Debug for HeaderRef[src]

impl Eq for HeaderRef[src]

impl From<Header> for HeaderRef[src]

impl PartialEq<HeaderRef> for HeaderRef[src]

impl StructuralEq for HeaderRef[src]

impl StructuralPartialEq for HeaderRef[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> Erased for T

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

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

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,