Struct solana_core::serve_repair::ServeRepair [−][src]
pub struct ServeRepair { /* fields omitted */ }
Implementations
pub fn listen(
me: Arc<RwLock<Self>>,
blockstore: Option<Arc<Blockstore>>,
requests_receiver: PacketReceiver,
response_sender: PacketSender,
exit: &Arc<AtomicBool>
) -> JoinHandle<()>
pub fn repair_request_duplicate_compute_best_peer(
&self,
slot: Slot,
cluster_slots: &ClusterSlots,
repair_validators: &Option<HashSet<Pubkey>>
) -> Result<(Pubkey, SocketAddr), Error>
pub fn map_repair_request(
&self,
repair_request: &RepairType,
repair_peer_id: &Pubkey,
repair_stats: &mut RepairStats,
nonce: Nonce
) -> Result<Vec<u8>, Error>
Trait Implementations
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more