Function pea_api::get::sync

source ·
pub async fn sync(api: &str) -> Result<Sync, Box<dyn Error>>
Examples found in repository?
examples/api.rs (line 6)
4
5
6
7
8
async fn main() -> Result<(), Box<dyn Error>> {
    println!("{}", api::get::index("localhost:9332").await?);
    println!("{:?}", api::get::sync("localhost:9332").await?);
    Ok(())
}