Struct quilibrium::NodeClient
source · pub struct NodeClient { /* private fields */ }Expand description
gRPC client for a Quilibrium node.
Implementations§
source§impl NodeClient
impl NodeClient
sourcepub async fn new(uri: Uri) -> Result<Self, NodeClientError>
pub async fn new(uri: Uri) -> Result<Self, NodeClientError>
Create a new node client. The URI should be the address of the node’s gRPC service.
sourcepub async fn network_info(
&mut self
) -> Result<NetworkInfoResponse, NodeClientError>
pub async fn network_info( &mut self ) -> Result<NetworkInfoResponse, NodeClientError>
Fetch the peers from the node’s peer store.
sourcepub async fn peer_info(&mut self) -> Result<PeerInfoResponse, NodeClientError>
pub async fn peer_info(&mut self) -> Result<PeerInfoResponse, NodeClientError>
Fetch the broadcasted sync info that gets replicated through the network mesh.
Trait Implementations§
source§impl Clone for NodeClient
impl Clone for NodeClient
source§fn clone(&self) -> NodeClient
fn clone(&self) -> NodeClient
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 NodeClient
impl Send for NodeClient
impl Sync for NodeClient
impl Unpin for NodeClient
impl !UnwindSafe for NodeClient
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