Struct hersir::controller::MonitorLegacyNode
source · pub struct MonitorLegacyNode {
pub process: JormungandrProcess,
pub progress_bar: ProgressBarController,
}
Fields§
§process: JormungandrProcess
§progress_bar: ProgressBarController
Implementations§
source§impl LegacyNode
impl LegacyNode
pub fn new( process: JormungandrProcess, progress_bar: ProgressBarController ) -> Self
pub fn alias(&self) -> NodeAlias
pub fn status(&self) -> Result<Status, StartupError>
pub fn progress_bar(&self) -> &ProgressBarController
pub fn log(&self, info: &str)
pub fn genesis_block_hash(&self) -> Result<HeaderId, Error>
pub fn legacy_rest(&self) -> BackwardCompatibleRest
pub fn rest(&self) -> JormungandrRest
pub fn stats(&self) -> Result<Yaml, Error>
pub fn log_stats(&self)
pub fn wait_for_bootstrap(&self) -> Result<(), Error>
pub fn wait_for_shutdown(&mut self) -> Result<Option<ExitStatus>, Error>
pub fn logger(&self) -> &JormungandrLogger
pub fn is_up(&self) -> bool
pub fn shutdown(&mut self) -> Result<Option<ExitStatus>, Error>
pub fn capture_logs(&mut self)
pub fn progress_bar_start(&self)
fn progress_bar_failure(&self)
fn progress_bar_success(&self)
Trait Implementations§
source§impl FragmentNode for LegacyNode
impl FragmentNode for LegacyNode
fn alias(&self) -> NodeAlias
fn fragment_logs( &self ) -> Result<HashMap<FragmentId, FragmentLog>, FragmentNodeError>
fn send_fragment( &self, fragment: Fragment ) -> Result<MemPoolCheck, FragmentNodeError>
fn send_batch_fragments( &self, _fragments: Vec<Fragment>, _fail_fast: bool ) -> Result<FragmentsProcessingSummary, FragmentNodeError>
fn log_pending_fragment(&self, fragment_id: FragmentId)
fn log_rejected_fragment(&self, fragment_id: FragmentId, reason: String)
fn log_in_block_fragment( &self, fragment_id: FragmentId, date: BlockDate, block: Hash )
fn log_content(&self) -> Vec<String>
source§impl SyncNode for LegacyNode
impl SyncNode for LegacyNode
Auto Trait Implementations§
impl !RefUnwindSafe for LegacyNode
impl Send for LegacyNode
impl !Sync for LegacyNode
impl Unpin for LegacyNode
impl !UnwindSafe for LegacyNode
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