pub struct ArchKitClient { /* private fields */ }Expand description
The smallest reusable Arch client, currently limited to node health.
Implementations§
Source§impl ArchKitClient
impl ArchKitClient
Sourcepub fn new(rpc_url: impl Into<String>) -> Result<Self, ArchKitError>
pub fn new(rpc_url: impl Into<String>) -> Result<Self, ArchKitError>
Create a client for an Arch JSON-RPC endpoint.
Sourcepub fn health(&self) -> Result<HealthStatus, ArchKitError>
pub fn health(&self) -> Result<HealthStatus, ArchKitError>
Check that the node is ready and produces a new block during the observation window.
Trait Implementations§
Source§impl Clone for ArchKitClient
impl Clone for ArchKitClient
Auto Trait Implementations§
impl Freeze for ArchKitClient
impl RefUnwindSafe for ArchKitClient
impl Send for ArchKitClient
impl Sync for ArchKitClient
impl Unpin for ArchKitClient
impl UnsafeUnpin for ArchKitClient
impl UnwindSafe for ArchKitClient
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