[][src]Struct solana_core::serve_repair::ServeRepair

pub struct ServeRepair { /* fields omitted */ }

Methods

impl ServeRepair[src]

pub fn new_with_invalid_keypair(contact_info: ContactInfo) -> Self[src]

Without a valid keypair gossip will not function. Only useful for tests.

pub fn new(cluster_info: Arc<ClusterInfo>) -> Self[src]

pub fn my_info(&self) -> &ContactInfo[src]

pub fn keypair(&self) -> &Arc<Keypair>[src]

pub fn listen(
    me: Arc<RwLock<Self>>,
    blockstore: Option<Arc<Blockstore>>,
    requests_receiver: PacketReceiver,
    response_sender: PacketSender,
    exit: &Arc<AtomicBool>
) -> JoinHandle<()>
[src]

pub fn repair_request(
    &self,
    cluster_slots: &ClusterSlots,
    repair_request: &RepairType,
    cache: &mut HashMap<Slot, (Vec<ContactInfo>, Vec<(u64, usize)>)>,
    repair_stats: &mut RepairStats
) -> Result<(SocketAddr, Vec<u8>), Error>
[src]

pub fn repair_request_duplicate_compute_best_peer(
    &self,
    slot: Slot,
    cluster_slots: &ClusterSlots
) -> Result<SocketAddr, Error>
[src]

pub fn map_repair_request(
    &self,
    repair_request: &RepairType,
    repair_stats: &mut RepairStats
) -> Result<Vec<u8>, Error>
[src]

Trait Implementations

impl Clone for ServeRepair[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, 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> 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<T> Typeable for T where
    T: Any

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