[][src]Struct solana_archiver_lib::archiver::Archiver

pub struct Archiver { /* fields omitted */ }

Methods

impl Archiver[src]

pub fn new(
    ledger_path: &Path,
    node: Node,
    cluster_entrypoint: ContactInfo,
    keypair: Arc<Keypair>,
    storage_keypair: Arc<Keypair>,
    client_commitment: CommitmentConfig
) -> Result<Self, ArchiverError>
[src]

Returns a Result that contains an archiver on success

Arguments

  • ledger_path - path to where the ledger will be stored. Causes panic if none
  • node - The archiver node
  • cluster_entrypoint - ContactInfo representing an entry into the network
  • keypair - Keypair for this archiver

pub fn close(self)[src]

pub fn join(self)[src]

pub fn download_from_archiver(
    cluster_info: &Arc<RwLock<ClusterInfo>>,
    archiver_info: &ContactInfo,
    blockstore: &Arc<Blockstore>,
    slots_per_segment: u64
) -> Result<u64, ArchiverError>
[src]

Ask an archiver to populate a given blockstore with its segment. Return the slot at the start of the archiver's segment

It is recommended to use a temporary blockstore for this since the download will not verify shreds received and might impact the chaining of shreds across slots

Auto Trait Implementations

impl !RefUnwindSafe for Archiver

impl Send for Archiver

impl Sync for Archiver

impl Unpin for Archiver

impl !UnwindSafe for Archiver

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,