[][src]Struct beacon_node::Client

pub struct Client<T> where
    T: BeaconChainTypes
{ /* fields omitted */ }

The core "beacon node" client.

Holds references to running services, cleanly shutting them down when dropped.

Methods

impl<T> Client<T> where
    T: BeaconChainTypes
[src]

pub fn beacon_chain(&self) -> Option<Arc<BeaconChain<T>>>[src]

Returns an Arc reference to the client's BeaconChain, if it was started.

pub fn http_listen_addr(&self) -> Option<SocketAddr>[src]

Returns the address of the client's HTTP API server, if it was started.

pub fn websocket_listen_addr(&self) -> Option<SocketAddr>[src]

Returns the address of the client's WebSocket API server, if it was started.

pub fn libp2p_listen_port(&self) -> Option<u16>[src]

Returns the port of the client's libp2p stack, if it was started.

Trait Implementations

impl<T> Drop for Client<T> where
    T: BeaconChainTypes
[src]

Auto Trait Implementations

impl<T> Send for Client<T> where
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::EpochsPerHistoricalVector: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::EpochsPerSlashingsVector: Send + Sync,
    <T as BeaconChainTypes>::Eth1Chain: Send + Sync,
    <T as BeaconChainTypes>::EthSpec: EthSpec + Send + Sync,
    <T as BeaconChainTypes>::EventHandler: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::HistoricalRootsLimit: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::JustificationBitsLength: Send + Sync,
    <T as BeaconChainTypes>::LmdGhost: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxAttestations: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxAttesterSlashings: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxDeposits: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxPendingAttestations: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxProposerSlashings: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxTransfers: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxValidatorsPerCommittee: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxVoluntaryExits: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::ShardCount: Send + Sync,
    <T as BeaconChainTypes>::SlotClock: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::SlotsPerEth1VotingPeriod: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::SlotsPerHistoricalRoot: Send + Sync,
    <T as BeaconChainTypes>::Store: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::ValidatorRegistryLimit: Send + Sync

impl<T> Unpin for Client<T>

impl<T> Sync for Client<T> where
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::EpochsPerHistoricalVector: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::EpochsPerSlashingsVector: Send + Sync,
    <T as BeaconChainTypes>::Eth1Chain: Send + Sync,
    <T as BeaconChainTypes>::EthSpec: EthSpec + Send + Sync,
    <T as BeaconChainTypes>::EventHandler: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::HistoricalRootsLimit: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::JustificationBitsLength: Send + Sync,
    <T as BeaconChainTypes>::LmdGhost: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxAttestations: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxAttesterSlashings: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxDeposits: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxPendingAttestations: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxProposerSlashings: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxTransfers: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxValidatorsPerCommittee: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::MaxVoluntaryExits: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::ShardCount: Send + Sync,
    <T as BeaconChainTypes>::SlotClock: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::SlotsPerEth1VotingPeriod: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::SlotsPerHistoricalRoot: Send + Sync,
    <T as BeaconChainTypes>::Store: Send + Sync,
    <<T as BeaconChainTypes>::EthSpec as EthSpec>::ValidatorRegistryLimit: Send + Sync

impl<T> !UnwindSafe for Client<T>

impl<T> !RefUnwindSafe for Client<T>

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Erased for T