pub(crate) struct Download {
url: String,
suggested_filename: String,
artifact: Weak<Artifact>,
}Fields§
§url: String§suggested_filename: String§artifact: Weak<Artifact>Implementations§
Source§impl Download
impl Download
pub(crate) fn new( artifact: Weak<Artifact>, url: String, suggested_filename: String, ) -> Self
pub(crate) fn url(&self) -> &str
pub(crate) fn suggested_filename(&self) -> &str
pub(crate) async fn path(&self) -> Result<Option<PathBuf>, Arc<Error>>
pub(crate) async fn delete(&self) -> Result<(), Arc<Error>>
pub(crate) async fn save_as<P: AsRef<Path>>( &self, path: P, ) -> Result<(), Arc<Error>>
pub(crate) async fn failure(&self) -> Result<Option<String>, Arc<Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Download
impl RefUnwindSafe for Download
impl Send for Download
impl Sync for Download
impl Unpin for Download
impl UnwindSafe for Download
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more