pub struct Magnet {
pub info_hashes: InfoHashes,
pub display_name: Option<String>,
pub trackers: Vec<String>,
pub peers: Vec<String>,
pub selected_files: Option<Vec<FileSelection>>,
}Expand description
Parsed magnet link (BEP 9 + BEP 52).
Supports v1 (urn:btih:), v2 (urn:btmh:), and hybrid magnets.
Fields§
§info_hashes: InfoHashesUnified info hashes (v1 and/or v2).
display_name: Option<String>Display name (optional).
trackers: Vec<String>Tracker URLs.
peers: Vec<String>Peer addresses (x.pe parameter).
selected_files: Option<Vec<FileSelection>>BEP 53 file selection (optional so= parameter).
Implementations§
Trait Implementations§
impl Eq for Magnet
impl StructuralPartialEq for Magnet
Auto Trait Implementations§
impl Freeze for Magnet
impl RefUnwindSafe for Magnet
impl Send for Magnet
impl Sync for Magnet
impl Unpin for Magnet
impl UnsafeUnpin for Magnet
impl UnwindSafe for Magnet
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