pub struct AdminRpcClient { /* private fields */ }Expand description
The Client.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(sender: RpcChannel) -> Self
pub fn new(sender: RpcChannel) -> Self
Creates a new Client.
Sourcepub fn exit(&self) -> impl Future<Output = RpcResult<()>>
pub fn exit(&self) -> impl Future<Output = RpcResult<()>>
Initiates validator exit; exit is asynchronous so the validator will almost certainly still be running when this method returns
pub fn reload_plugin( &self, name: String, config_file: String, ) -> impl Future<Output = RpcResult<()>>
pub fn unload_plugin(&self, name: String) -> impl Future<Output = RpcResult<()>>
pub fn load_plugin( &self, config_file: String, ) -> impl Future<Output = RpcResult<String>>
pub fn list_plugins(&self) -> impl Future<Output = RpcResult<Vec<String>>>
pub fn rpc_addr(&self) -> impl Future<Output = RpcResult<Option<SocketAddr>>>
pub fn set_log_filter( &self, filter: String, ) -> impl Future<Output = RpcResult<()>>
pub fn start_time(&self) -> impl Future<Output = RpcResult<SystemTime>>
pub fn start_progress( &self, ) -> impl Future<Output = RpcResult<ValidatorStartProgress>>
pub fn set_identity( &self, keypair_file: String, require_tower: bool, ) -> impl Future<Output = RpcResult<()>>
pub fn set_identity_from_bytes( &self, identity_keypair: Vec<u8>, require_tower: bool, ) -> impl Future<Output = RpcResult<()>>
pub fn set_staked_nodes_overrides( &self, path: String, ) -> impl Future<Output = RpcResult<()>>
pub fn contact_info( &self, ) -> impl Future<Output = RpcResult<AdminRpcContactInfo>>
pub fn select_active_interface( &self, interface: IpAddr, ) -> impl Future<Output = RpcResult<()>>
pub fn repair_shred_from_peer( &self, pubkey: Option<Pubkey>, slot: u64, shred_index: u64, ) -> impl Future<Output = RpcResult<()>>
pub fn repair_whitelist( &self, ) -> impl Future<Output = RpcResult<AdminRpcRepairWhitelist>>
pub fn set_repair_whitelist( &self, whitelist: Vec<Pubkey>, ) -> impl Future<Output = RpcResult<()>>
pub fn get_secondary_index_key_size( &self, pubkey_str: String, ) -> impl Future<Output = RpcResult<HashMap<RpcAccountIndex, usize>>>
pub fn set_public_tpu_address( &self, public_tpu_addr: SocketAddr, ) -> impl Future<Output = RpcResult<()>>
pub fn set_public_tpu_forwards_address( &self, public_tpu_forwards_addr: SocketAddr, ) -> impl Future<Output = RpcResult<()>>
Trait Implementations§
Source§impl From<RpcChannel> for Client
impl From<RpcChannel> for Client
Source§fn from(channel: RpcChannel) -> Self
fn from(channel: RpcChannel) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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