pub struct TorrentMetaV1 {
pub info_hash: Id20,
pub announce: Option<String>,
pub announce_list: Option<Vec<Vec<String>>>,
pub comment: Option<String>,
pub created_by: Option<String>,
pub creation_date: Option<i64>,
pub info: InfoDict,
pub url_list: Vec<String>,
pub httpseeds: Vec<String>,
pub info_bytes: Option<Bytes>,
pub ssl_cert: Option<Vec<u8>>,
}Expand description
Parsed .torrent file (BEP 3 metainfo, v1).
Fields§
§info_hash: Id20The info hash (SHA1 of the raw “info” dict bytes).
announce: Option<String>Primary announce URL.
announce_list: Option<Vec<Vec<String>>>Announce list (BEP 12) — list of tracker tiers.
comment: Option<String>Comment.
created_by: Option<String>Created by.
creation_date: Option<i64>Creation date (unix timestamp).
info: InfoDictInfo dictionary.
url_list: Vec<String>BEP 19 web seed URLs (GetRight-style).
httpseeds: Vec<String>BEP 17 HTTP seed URLs (Hoffman-style).
info_bytes: Option<Bytes>Raw info dict bytes for BEP 9 metadata serving.
ssl_cert: Option<Vec<u8>>PEM-encoded SSL CA certificate from the info dict, if present.
Trait Implementations§
Source§impl Clone for TorrentMetaV1
impl Clone for TorrentMetaV1
Source§fn clone(&self) -> TorrentMetaV1
fn clone(&self) -> TorrentMetaV1
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 TorrentMetaV1
impl Debug for TorrentMetaV1
Source§impl From<TorrentMetaV1> for TorrentMeta
impl From<TorrentMetaV1> for TorrentMeta
Source§fn from(meta: TorrentMetaV1) -> Self
fn from(meta: TorrentMetaV1) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for TorrentMetaV1
impl RefUnwindSafe for TorrentMetaV1
impl Send for TorrentMetaV1
impl Sync for TorrentMetaV1
impl Unpin for TorrentMetaV1
impl UnsafeUnpin for TorrentMetaV1
impl UnwindSafe for TorrentMetaV1
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