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

pub struct ServeRepair { /* fields omitted */ }

Implementations

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>, WeightedIndex<u64>)>,
    repair_stats: &mut RepairStats,
    repair_validators: &Option<HashSet<Pubkey>>
) -> Result<(SocketAddr, Vec<u8>), Error>
[src]

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

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

Trait Implementations

impl Clone for ServeRepair[src]

Auto Trait Implementations

impl RefUnwindSafe for ServeRepair

impl Send for ServeRepair

impl Sync for ServeRepair

impl Unpin for ServeRepair

impl UnwindSafe for ServeRepair

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

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>, 
[src]

impl<T> WithSubscriber for T[src]