Function abstio::download::download_bytes [−][src]
pub async fn download_bytes<I: AsRef<str>>(
url: I,
progress: &mut Sender<String>
) -> Result<Vec<u8>>
Function abstio::download::download_bytes [−][src]
pub async fn download_bytes<I: AsRef<str>>(
url: I,
progress: &mut Sender<String>
) -> Result<Vec<u8>>
Downloads bytes from a URL. This must be called with a tokio runtime somewhere. The caller creates an mpsc channel pair and provides the sender. Progress will be described through it.
Function abstio::download::download_to_file [−][src]
pub async fn download_to_file<I1: AsRef<str>, I2: AsRef<str>>(
url: I1,
path: I2
) -> Result<()>
Function abstio::download::download_to_file [−][src]
pub async fn download_to_file<I1: AsRef<str>, I2: AsRef<str>>(
url: I1,
path: I2
) -> Result<()>
Download a file from a URL. This must be called with a tokio runtime somewhere. Progress will be printed to STDOUT.
Function abstio::download_bytes [−][src]
pub async fn download_bytes<I: AsRef<str>>(
url: I,
progress: &mut Sender<String>
) -> Result<Vec<u8>>
Function abstio::download_bytes [−][src]
pub async fn download_bytes<I: AsRef<str>>(
url: I,
progress: &mut Sender<String>
) -> Result<Vec<u8>>
Downloads bytes from a URL. This must be called with a tokio runtime somewhere. The caller creates an mpsc channel pair and provides the sender. Progress will be described through it.
Function abstio::download_to_file [−][src]
pub async fn download_to_file<I1: AsRef<str>, I2: AsRef<str>>(
url: I1,
path: I2
) -> Result<()>
Function abstio::download_to_file [−][src]
pub async fn download_to_file<I1: AsRef<str>, I2: AsRef<str>>(
url: I1,
path: I2
) -> Result<()>
Download a file from a URL. This must be called with a tokio runtime somewhere. Progress will be printed to STDOUT.
Function abstio::load_all_objects [−][src]
pub fn load_all_objects<T: DeserializeOwned>(dir: String) -> Vec<(String, T)>
Function abstio::load_all_objects [−][src]
pub fn load_all_objects<T: DeserializeOwned>(dir: String) -> Vec<(String, T)>
Load all serialized things from a directory, return sorted by name, with file extension removed. Detects JSON or binary. Filters out broken files.
Function abstio::maybe_read_binary [−][src]
pub fn maybe_read_binary<T: DeserializeOwned>(
path: String,
timer: &mut Timer<'_>
) -> Result<T>