pub struct DownloadStatus {Show 15 fields
pub DownloadId: String,
pub url: String,
pub destination: PathBuf,
pub TotalSize: u64,
pub downloaded: u64,
pub progress: f32,
pub status: DownloadState,
pub error: Option<String>,
pub StartedAt: Option<DateTime<Utc>>,
pub CompletedAt: Option<DateTime<Utc>>,
pub ChunksCompleted: usize,
pub TotalChunks: usize,
pub DownloadRateBytesPerSec: u64,
pub ExpectedChecksum: Option<String>,
pub ActualChecksum: Option<String>,
}Expand description
Download status with comprehensive tracking
Fields§
§DownloadId: String§url: String§destination: PathBuf§TotalSize: u64§downloaded: u64§progress: f32§status: DownloadState§error: Option<String>§StartedAt: Option<DateTime<Utc>>§CompletedAt: Option<DateTime<Utc>>§ChunksCompleted: usize§TotalChunks: usize§DownloadRateBytesPerSec: u64§ExpectedChecksum: Option<String>§ActualChecksum: Option<String>Trait Implementations§
Source§impl Clone for DownloadStatus
impl Clone for DownloadStatus
Source§fn clone(&self) -> DownloadStatus
fn clone(&self) -> DownloadStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 DownloadStatus
impl Debug for DownloadStatus
Source§impl<'de> Deserialize<'de> for DownloadStatus
impl<'de> Deserialize<'de> for DownloadStatus
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 DownloadStatus
impl RefUnwindSafe for DownloadStatus
impl Send for DownloadStatus
impl Sync for DownloadStatus
impl Unpin for DownloadStatus
impl UnwindSafe for DownloadStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].