pub struct Aria2DownloadingTask {
pub update: String,
pub interval: i64,
pub name: String,
pub status: i32,
pub dst: String,
pub total: i64,
pub downloaded: i64,
pub speed: i64,
pub info: Aria2DownloadInfo,
pub node: String,
}Expand description
In-flight aria2 task as returned by GET /aria2/downloading.
Cloudreve v3 returns rich progress here — info mirrors aria2’s JSON-RPC payload,
while the top-level fields are pre-computed summaries the web UI uses for the row.
Fields§
§update: String§interval: i64§name: String§status: i32Aria2 status as Cloudreve’s internal int (see Cloudreve aria2 constants:
0 ready, 1 downloading, 2 paused, 3 error, 4 complete, 5 canceled).
dst: String§total: i64§downloaded: i64§speed: i64§info: Aria2DownloadInfo§node: StringTrait Implementations§
Source§impl Clone for Aria2DownloadingTask
impl Clone for Aria2DownloadingTask
Source§fn clone(&self) -> Aria2DownloadingTask
fn clone(&self) -> Aria2DownloadingTask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Aria2DownloadingTask
impl Debug for Aria2DownloadingTask
Source§impl Default for Aria2DownloadingTask
impl Default for Aria2DownloadingTask
Source§fn default() -> Aria2DownloadingTask
fn default() -> Aria2DownloadingTask
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Aria2DownloadingTask
impl<'de> Deserialize<'de> for Aria2DownloadingTask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Aria2DownloadingTask
impl RefUnwindSafe for Aria2DownloadingTask
impl Send for Aria2DownloadingTask
impl Sync for Aria2DownloadingTask
impl Unpin for Aria2DownloadingTask
impl UnsafeUnpin for Aria2DownloadingTask
impl UnwindSafe for Aria2DownloadingTask
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