pub struct TorrentFiles {
pub length: usize,
pub path: Vec<String>,
}Expand description
when there is more than one file.
Fields§
§length: usizesize of the file in bytes
path: Vec<String>a list of strings corresponding to subdirectory names, the last of which is the actual file name
Implementations§
Source§impl TorrentFiles
impl TorrentFiles
pub fn parse(bencode_tree: &BencodeHashMap) -> Option<TorrentFiles>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TorrentFiles
impl RefUnwindSafe for TorrentFiles
impl Send for TorrentFiles
impl Sync for TorrentFiles
impl Unpin for TorrentFiles
impl UnsafeUnpin for TorrentFiles
impl UnwindSafe for TorrentFiles
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