pub enum AddSource {
Magnet(String),
Bytes(Vec<u8>),
}Expand description
Source for a torrent add (M170).
Separated from AddTorrentParams so that the builder API can name
the source independently of the other knobs.
Variants§
Magnet(String)
Magnet URI (BEP 9 metadata fetch required post-add).
Bytes(Vec<u8>)
Raw .torrent file bytes (auto-detects v1/v2/hybrid).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AddSource
impl RefUnwindSafe for AddSource
impl Send for AddSource
impl Sync for AddSource
impl Unpin for AddSource
impl UnsafeUnpin for AddSource
impl UnwindSafe for AddSource
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