Skip to main content

Crate ic_bn_lib

Crate ic_bn_lib 

Source

Re-exports§

pub use hyper;
pub use hyper_util;
pub use ic_agent;
pub use ic_bn_lib_common;
pub use prometheus;
pub use reqwest;
pub use rustls;
pub use uuid;

Modules§

http
pubsub
tasks
tests
tls
utils

Macros§

dyn_event
hname
hval
retry_async
Retrying async closures/functions holding mutable references is a pain in Rust. So, for now, we’ll have to use a macro to work that around.

Enums§

RetryError
Error to be used with retry_async macro which indicates whether it should be retried or not.

Functions§

download_url
Downloads the given url and returns it as Bytes
download_url_async
Downloads the given url and returns it as Bytes
download_url_to
Downloads the given url to given path. Destination folder must exist.
download_url_to_async
Downloads the given url to given path. Destination folder must exist.