pub struct AdminRpcImpl;Trait Implementations§
Source§impl AdminRpc for AdminRpcImpl
impl AdminRpc for AdminRpcImpl
type Metadata = AdminRpcRequestMetadata
Source§fn exit(&self, meta: Self::Metadata) -> Result<()>
fn exit(&self, meta: Self::Metadata) -> Result<()>
Initiates validator exit; exit is asynchronous so the validator
will almost certainly still be running when this method returns
fn reload_plugin( &self, meta: Self::Metadata, name: String, config_file: String, ) -> BoxFuture<Result<()>>
fn load_plugin( &self, meta: Self::Metadata, config_file: String, ) -> BoxFuture<Result<String>>
fn unload_plugin( &self, meta: Self::Metadata, name: String, ) -> BoxFuture<Result<()>>
fn list_plugins(&self, meta: Self::Metadata) -> BoxFuture<Result<Vec<String>>>
fn rpc_addr(&self, meta: Self::Metadata) -> Result<Option<SocketAddr>>
fn set_log_filter(&self, filter: String) -> Result<()>
fn start_time(&self, meta: Self::Metadata) -> Result<SystemTime>
fn start_progress(&self, meta: Self::Metadata) -> Result<ValidatorStartProgress>
fn set_identity( &self, meta: Self::Metadata, keypair_file: String, require_tower: bool, ) -> Result<()>
fn set_identity_from_bytes( &self, meta: Self::Metadata, identity_keypair: Vec<u8>, require_tower: bool, ) -> Result<()>
fn set_staked_nodes_overrides( &self, meta: Self::Metadata, path: String, ) -> Result<()>
fn contact_info(&self, meta: Self::Metadata) -> Result<AdminRpcContactInfo>
fn repair_shred_from_peer( &self, meta: Self::Metadata, pubkey: Option<Pubkey>, slot: u64, shred_index: u64, ) -> Result<()>
fn repair_whitelist( &self, meta: Self::Metadata, ) -> Result<AdminRpcRepairWhitelist>
fn set_repair_whitelist( &self, meta: Self::Metadata, whitelist: Vec<Pubkey>, ) -> Result<()>
fn get_secondary_index_key_size( &self, meta: Self::Metadata, pubkey_str: String, ) -> Result<HashMap<RpcAccountIndex, usize>>
fn set_public_tpu_address( &self, meta: Self::Metadata, public_tpu_addr: SocketAddr, ) -> Result<()>
fn set_public_tpu_forwards_address( &self, meta: Self::Metadata, public_tpu_forwards_addr: SocketAddr, ) -> Result<()>
Source§fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Create an
IoDelegate, wiring rpc calls to the trait methods.Auto Trait Implementations§
impl Freeze for AdminRpcImpl
impl RefUnwindSafe for AdminRpcImpl
impl Send for AdminRpcImpl
impl Sync for AdminRpcImpl
impl Unpin for AdminRpcImpl
impl UnwindSafe for AdminRpcImpl
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