pub struct Inx { /* private fields */ }
Expand description
An INX client connection.
Implementations
sourceimpl 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 !RefUnwindSafe for Inx
impl Send for Inx
impl Sync for Inx
impl Unpin for Inx
impl !UnwindSafe for Inx
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request