pub struct RemoteJormungandr {
rest: Option<JormungandrRest>,
grpc: Option<JormungandrClient>,
logger: Option<JormungandrLogger>,
node_config: Option<NodeConfig>,
alias: NodeAlias,
}
Fields§
§rest: Option<JormungandrRest>
§grpc: Option<JormungandrClient>
§logger: Option<JormungandrLogger>
§node_config: Option<NodeConfig>
§alias: NodeAlias
Implementations§
source§impl RemoteJormungandr
impl RemoteJormungandr
pub fn new( rest: Option<JormungandrRest>, grpc: Option<JormungandrClient>, logger: Option<JormungandrLogger>, node_config: Option<NodeConfig>, alias: NodeAlias ) -> Self
pub fn alias(&self) -> &NodeAlias
pub fn rest(&self) -> &JormungandrRest
pub fn grpc(&self) -> &JormungandrClient
pub fn node_config(&self) -> &NodeConfig
pub fn clone_with_rest(&self) -> Self
Trait Implementations§
source§impl FragmentNode for RemoteJormungandr
impl FragmentNode for RemoteJormungandr
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 RemoteJormungandr
impl SyncNode for RemoteJormungandr
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteJormungandr
impl Send for RemoteJormungandr
impl !Sync for RemoteJormungandr
impl Unpin for RemoteJormungandr
impl !UnwindSafe for RemoteJormungandr
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