pub struct Inx { /* private fields */ }Expand description
An INX client connection.
Implementations§
Source§impl Inx
impl Inx
Sourcepub async fn connect(address: String) -> Result<Self, Error>
pub async fn connect(address: String) -> Result<Self, Error>
Connect to the INX interface of a node.
Sourcepub async fn listen_to_confirmed_milestones(
&mut self,
request: MilestoneRangeRequest,
) -> Result<impl Stream<Item = Result<MilestoneAndProtocolParameters, Error>>, Error>
pub async fn listen_to_confirmed_milestones( &mut self, request: MilestoneRangeRequest, ) -> Result<impl Stream<Item = Result<MilestoneAndProtocolParameters, Error>>, Error>
Listens to confirmed milestones in the range of
pub async fn listen_to_ledger_updates( &mut self, request: MilestoneRangeRequest, ) -> Result<impl Stream<Item = Result<LedgerUpdate, Error>>, Error>
pub async fn read_node_status(&mut self) -> Result<NodeStatus, Error>
pub async fn read_node_configuration( &mut self, ) -> Result<NodeConfiguration, Error>
pub async fn read_unspent_outputs( &mut self, ) -> Result<impl Stream<Item = Result<UnspentOutput, Error>>, Error>
pub async fn read_protocol_parameters( &mut self, request: MilestoneRequest, ) -> Result<ProtocolParameters, Error>
Sourcepub async fn read_milestone_cone(
&mut self,
request: MilestoneRequest,
) -> Result<impl Stream<Item = Result<BlockWithMetadata, Error>>, Error>
pub async fn read_milestone_cone( &mut self, request: MilestoneRequest, ) -> Result<impl Stream<Item = Result<BlockWithMetadata, Error>>, Error>
Reads the past cone of a milestone specified by a MilestoneRequest.
pub async fn read_milestone( &mut self, request: MilestoneRequest, ) -> Result<Milestone, Error>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Inx
impl !RefUnwindSafe for Inx
impl Send for Inx
impl Sync for Inx
impl Unpin for Inx
impl !UnwindSafe for Inx
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
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> 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