Struct solana_core::validator::Validator
source · pub struct Validator {
pub cluster_info: Arc<ClusterInfo>,
pub bank_forks: Arc<RwLock<BankForks>>,
pub blockstore: Arc<Blockstore>,
/* private fields */
}
Fields§
§cluster_info: Arc<ClusterInfo>
§bank_forks: Arc<RwLock<BankForks>>
§blockstore: Arc<Blockstore>
Implementations§
source§impl Validator
impl Validator
pub fn new( node: Node, identity_keypair: Arc<Keypair>, ledger_path: &Path, vote_account: &Pubkey, authorized_voter_keypairs: Arc<RwLock<Vec<Arc<Keypair>>>>, cluster_entrypoints: Vec<ContactInfo>, config: &ValidatorConfig, should_check_duplicate_instance: bool, rpc_to_plugin_manager_receiver: Option<Receiver<GeyserPluginManagerRequest>>, start_progress: Arc<RwLock<ValidatorStartProgress>>, socket_addr_space: SocketAddrSpace, use_quic: bool, tpu_connection_pool_size: usize, tpu_enable_udp: bool, admin_rpc_service_post_init: Arc<RwLock<Option<AdminRpcRequestMetadataPostInit>>> ) -> Result<Self, String>
pub fn exit(&mut self)
pub fn close(self)
pub fn join(self)
Auto Trait Implementations§
impl !Freeze for Validator
impl !RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl !UnwindSafe for Validator
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request