Struct hersir::controller::monitor::node::JormungandrRest
source · pub struct JormungandrRest {
inner: BackwardCompatibleRest,
}
Expand description
Specialized rest api
Fields§
§inner: BackwardCompatibleRest
Implementations§
source§impl JormungandrRest
impl JormungandrRest
pub fn new(uri: String) -> JormungandrRest
pub fn new_with_custom_settings( uri: String, settings: RestSettings ) -> JormungandrRest
pub fn address(&self) -> String
pub fn disable_logger(&mut self)
pub fn enable_logger(&mut self)
pub fn inner(&self) -> &BackwardCompatibleRest
pub fn raw(&self) -> &RawRest
pub fn new_with_cert<P>(uri: String, cert_file: P) -> JormungandrRestwhere P: AsRef<Path>,
pub fn epoch_reward_history( &self, epoch: u32 ) -> Result<EpochRewardsInfo, RestError>
pub fn updates( &self ) -> Result<HashMap<Hash, UpdateProposalStateDef, RandomState>, RestError>
pub fn reward_history( &self, length: u32 ) -> Result<Vec<EpochRewardsInfo, Global>, RestError>
pub fn remaining_rewards(&self) -> Result<Value, RestError>
pub fn stake_distribution(&self) -> Result<StakeDistributionDto, RestError>
pub fn account_votes( &self, address: Address ) -> Result<Option<Vec<AccountVotes, Global>>, RestError>
pub fn account_votes_all( &self ) -> Result<HashMap<String, Vec<AccountVotes, Global>, RandomState>, RestError>
pub fn account_votes_with_plan_id( &self, vote_plan_id: Hash, address: Address ) -> Result<Option<Vec<u8, Global>>, RestError>
pub fn stake_pools(&self) -> Result<Vec<String, Global>, RestError>
pub fn stake_distribution_at( &self, epoch: u32 ) -> Result<StakeDistributionDto, RestError>
pub fn stats(&self) -> Result<NodeStatsDto, RestError>
pub fn account_state(&self, id: &Identifier) -> Result<AccountState, RestError>
pub fn account_state_by_pk_raw( &self, bech32_str: &str ) -> Result<String, RestError>
pub fn account_state_by_pk( &self, bech32_str: &str ) -> Result<AccountState, RestError>
pub fn network_stats(&self) -> Result<Vec<PeerStats, Global>, RestError>
pub fn p2p_quarantined(&self) -> Result<Vec<PeerRecord, Global>, RestError>
pub fn p2p_non_public(&self) -> Result<Vec<PeerRecord, Global>, RestError>
pub fn p2p_available(&self) -> Result<Vec<PeerRecord, Global>, RestError>
pub fn p2p_view(&self) -> Result<Vec<String, Global>, RestError>
pub fn tip(&self) -> Result<Hash, RestError>
pub fn fragment_logs( &self ) -> Result<HashMap<Hash, FragmentLog, RandomState>, RestError>
pub fn settings(&self) -> Result<SettingsDto, RestError>
pub fn leaders_log(&self) -> Result<Vec<LeadershipLog, Global>, RestError>
pub fn send_fragment( &self, fragment: Fragment ) -> Result<MemPoolCheck, RestError>
pub fn send_raw_fragment(&self, bytes: Vec<u8, Global>) -> Result<(), RestError>
pub fn send_raw_fragments( &self, bytes: Vec<Vec<u8, Global>, Global> ) -> Result<(), RestError>
pub fn block_as_bytes( &self, header_hash: &Hash ) -> Result<Vec<u8, Global>, RestError>
pub fn shutdown(&self) -> Result<String, RestError>
pub fn block(&self, header_hash: &Hash) -> Result<Block, RestError>
pub fn fragments_statuses( &self, ids: Vec<String, Global> ) -> Result<HashMap<String, FragmentStatus, RandomState>, RestError>
pub fn send_fragment_batch( &self, fragments: Vec<Fragment, Global>, fail_fast: bool ) -> Result<FragmentsProcessingSummary, RestError>
pub fn vote_plan_statuses( &self ) -> Result<Vec<VotePlanStatus, Global>, RestError>
pub fn set_origin<S>(&mut self, origin: S)where S: Into<String>,
Trait Implementations§
source§impl Clone for JormungandrRest
impl Clone for JormungandrRest
source§fn clone(&self) -> JormungandrRest
fn clone(&self) -> JormungandrRest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for JormungandrRest
impl Send for JormungandrRest
impl Sync for JormungandrRest
impl Unpin for JormungandrRest
impl !UnwindSafe for JormungandrRest
Blanket Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§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