pub struct NetworkInfoClient(/* private fields */);Implementations§
Source§impl NetworkInfoClient
impl NetworkInfoClient
pub fn new(url: Url) -> Self
pub async fn network_info(&self) -> Result<NetworkInfo, ResponseError>
pub async fn peer_info(&self) -> Result<Vec<String>, ResponseError>
pub async fn block_by_hash(&self, id: &str) -> Result<BlockInfo, ResponseError>
pub async fn block_by_height( &self, id: &str, ) -> Result<BlockInfo, ResponseError>
Auto Trait Implementations§
impl Freeze for NetworkInfoClient
impl !RefUnwindSafe for NetworkInfoClient
impl Send for NetworkInfoClient
impl Sync for NetworkInfoClient
impl Unpin for NetworkInfoClient
impl UnsafeUnpin for NetworkInfoClient
impl !UnwindSafe for NetworkInfoClient
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