pub struct TorrentProperty {Show 33 fields
pub save_path: Option<String>,
pub creation_date: Option<i64>,
pub piece_size: Option<i64>,
pub comment: Option<String>,
pub total_wasted: Option<i64>,
pub total_uploaded: Option<i64>,
pub total_uploaded_session: Option<i64>,
pub total_downloaded: Option<i64>,
pub total_downloaded_session: Option<i64>,
pub up_limit: Option<i64>,
pub dl_limit: Option<i64>,
pub time_elapsed: Option<i64>,
pub seeding_time: Option<i64>,
pub nb_connections: Option<i64>,
pub nb_connections_limit: Option<i64>,
pub share_ratio: Option<f64>,
pub addition_date: Option<i64>,
pub completion_date: Option<i64>,
pub created_by: Option<String>,
pub dl_speed_avg: Option<i64>,
pub dl_speed: Option<i64>,
pub eta: Option<i64>,
pub last_seen: Option<i64>,
pub peers: Option<i64>,
pub peers_total: Option<i64>,
pub pieces_have: Option<i64>,
pub pieces_num: Option<i64>,
pub reannounce: Option<i64>,
pub seeds: Option<i64>,
pub seeds_total: Option<i64>,
pub total_size: Option<i64>,
pub up_speed_avg: Option<i64>,
pub up_speed: Option<i64>,
}
Fields§
§save_path: Option<String>
Torrent save path
creation_date: Option<i64>
Torrent creation date (Unix timestamp)
piece_size: Option<i64>
Torrent piece size (bytes)
comment: Option<String>
Torrent comment
total_wasted: Option<i64>
Total data wasted for torrent (bytes)
total_uploaded: Option<i64>
Total data uploaded for torrent (bytes)
total_uploaded_session: Option<i64>
Total data uploaded this session (bytes)
total_downloaded: Option<i64>
Total data downloaded for torrent (bytes)
total_downloaded_session: Option<i64>
Total data downloaded this session (bytes)
up_limit: Option<i64>
Torrent upload limit (bytes/s)
dl_limit: Option<i64>
Torrent download limit (bytes/s)
time_elapsed: Option<i64>
Torrent elapsed time (seconds)
seeding_time: Option<i64>
Torrent elapsed time while complete (seconds)
nb_connections: Option<i64>
Torrent connection count
nb_connections_limit: Option<i64>
Torrent connection count limit
Torrent share ratio
addition_date: Option<i64>
When this torrent was added (unix timestamp)
completion_date: Option<i64>
Torrent completion date (unix timestamp)
created_by: Option<String>
Torrent creator
dl_speed_avg: Option<i64>
Torrent average download speed (bytes/second)
dl_speed: Option<i64>
Torrent download speed (bytes/second)
eta: Option<i64>
Torrent ETA (seconds)
last_seen: Option<i64>
Last seen complete date (unix timestamp)
peers: Option<i64>
Number of peers connected to
peers_total: Option<i64>
Number of peers in the swarm
pieces_have: Option<i64>
Number of pieces owned
pieces_num: Option<i64>
Number of pieces of the torrent
reannounce: Option<i64>
Number of seconds until the next announce
seeds: Option<i64>
Number of seeds connected to
seeds_total: Option<i64>
Number of seeds in the swarm
total_size: Option<i64>
Torrent total size (bytes)
up_speed_avg: Option<i64>
Torrent average upload speed (bytes/second)
up_speed: Option<i64>
Torrent upload speed (bytes/second)
Trait Implementations§
Source§impl Clone for TorrentProperty
impl Clone for TorrentProperty
Source§fn clone(&self) -> TorrentProperty
fn clone(&self) -> TorrentProperty
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TorrentProperty
impl Debug for TorrentProperty
Source§impl<'de> Deserialize<'de> for TorrentProperty
impl<'de> Deserialize<'de> for TorrentProperty
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>,
Source§impl PartialEq for TorrentProperty
impl PartialEq for TorrentProperty
impl StructuralPartialEq for TorrentProperty
Auto Trait Implementations§
impl Freeze for TorrentProperty
impl RefUnwindSafe for TorrentProperty
impl Send for TorrentProperty
impl Sync for TorrentProperty
impl Unpin for TorrentProperty
impl UnwindSafe for TorrentProperty
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.