pub async fn download_artifact_to_buf<'a>(
task_id: &str,
run_id: Option<&str>,
name: &str,
retry: &Retry,
queue_service: &Queue,
buf: &'a mut [u8],
) -> Result<(&'a [u8], String)>
Expand description
Download an artifact into the given buffer and return the slice of that buffer containing the
artifact. If the artifact is larger than the buffer, then resulting error can be downcast to
std::io::Error with kind WriteZero
and the somewhat cryptic message “write zero byte into
writer”. Returns (slice, content_type). If run_id
is None then the latest run will be used.