Struct vapcore_light::net::Capabilities[][src]

pub struct Capabilities {
    pub serve_headers: bool,
    pub serve_chain_since: Option<u64>,
    pub serve_state_since: Option<u64>,
    pub tx_relay: bool,
}

Peer capabilities.

Fields

serve_headers: bool

Whether this peer can serve headers

serve_chain_since: Option<u64>

Earliest block number it can serve block/receipt requests for. None means no requests will be servable.

serve_state_since: Option<u64>

Earliest block number it can serve state requests for. None means no requests will be servable.

tx_relay: bool

Whether it can relay transactions to the eth network.

Implementations

impl Capabilities[src]

pub fn update_from(&mut self, announcement: &Announcement)[src]

Update the capabilities from an announcement.

Trait Implementations

impl Clone for Capabilities[src]

impl Copy for Capabilities[src]

impl Debug for Capabilities[src]

impl Default for Capabilities[src]

impl Eq for Capabilities[src]

impl PartialEq<Capabilities> for Capabilities[src]

impl StructuralEq for Capabilities[src]

impl StructuralPartialEq for Capabilities[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>,