pub struct FlatFileEntry {
pub path: PathBuf,
pub size: u64,
pub progress: u64,
pub priority: FilePriority,
}Expand description
One file row with all per-file state collapsed into a flat record.
The path stays as a PathBuf because the GUI tree-flattener walks
the components to compute folder depth, while the Web UI only needs
to_string_lossy() for the bare display string.
Fields§
§path: PathBufRelative path of the file within the torrent (mirrors
irontide_session::FileInfo::path).
size: u64File size in bytes.
progress: u64Bytes already downloaded for this file.
priority: FilePriorityCurrent download priority for this file.
Trait Implementations§
Source§impl Clone for FlatFileEntry
impl Clone for FlatFileEntry
Source§fn clone(&self) -> FlatFileEntry
fn clone(&self) -> FlatFileEntry
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 FlatFileEntry
impl Debug for FlatFileEntry
Source§impl PartialEq for FlatFileEntry
impl PartialEq for FlatFileEntry
Source§fn eq(&self, other: &FlatFileEntry) -> bool
fn eq(&self, other: &FlatFileEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FlatFileEntry
impl StructuralPartialEq for FlatFileEntry
Auto Trait Implementations§
impl Freeze for FlatFileEntry
impl RefUnwindSafe for FlatFileEntry
impl Send for FlatFileEntry
impl Sync for FlatFileEntry
impl Unpin for FlatFileEntry
impl UnsafeUnpin for FlatFileEntry
impl UnwindSafe for FlatFileEntry
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.