Function backblaze_b2::raw::download::download_range_by_name
[−]
[src]
pub fn download_range_by_name<InfoType>(
download_url: &str,
bucket_name: &str,
file_name: &str,
range_min: u64,
range_max: u64,
client: &Client
) -> Result<(Response, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
Performs a b2_download_file_by_name api call. This function specifies the range of the file to download, and the range_max parameter is inclusive.
This function does not include any authorization in the request, so it can only be used to access public buckets.
Errors
This function returns a B2Error
in case something goes wrong. Besides the standard
errors, this function can fail with is_file_not_found
, is_range_out_of_bounds
and
is_bucket_not_found
.