pub struct Torrent {
pub announce: String,
pub info: TorrentInfo,
}
Expand description
the top level torrent object.
Fields§
§announce: String
the URL of the tracker
info: TorrentInfo
this maps to a dictionary whose keys are dependent on whether one or more files are being shared
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Torrent
impl RefUnwindSafe for Torrent
impl Send for Torrent
impl Sync for Torrent
impl Unpin for Torrent
impl UnwindSafe for Torrent
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