Struct ytd_rs::YoutubeDL [−][src]
pub struct YoutubeDL { /* fields omitted */ }
Expand description
Structure that represents a youtube-dl task.
Every task needs a download location, a list of [‘Arg’] that can be empty and a [‘link’] to the desired source.
Implementations
impl YoutubeDL
[src]
impl YoutubeDL
[src]pub fn new_multiple_links(
dl_path: &str,
args: Vec<Arg>,
links: Vec<String>
) -> Result<YoutubeDL, String>
[src]
pub fn new_multiple_links(
dl_path: &str,
args: Vec<Arg>,
links: Vec<String>
) -> Result<YoutubeDL, String>
[src]Creates a new YoutubeDL job to be executed.
It takes a path where youtube-dl should be executed, a vec! of Arg
that can be empty
and finally a link that can be ""
if no video should be downloaded
The path gets canonicalized and the directory gets created by the constructor
pub fn new(
dl_path: &str,
args: Vec<Arg>,
link: &str
) -> Result<YoutubeDL, String>
[src]
dl_path: &str,
args: Vec<Arg>,
link: &str
) -> Result<YoutubeDL, String>
pub fn download(&self) -> YoutubeDLResult
[src]
pub fn download(&self) -> YoutubeDLResult
[src]Starts the download and returns when finished the result as YoutubeDLResult
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for YoutubeDL
impl Send for YoutubeDL
impl Sync for YoutubeDL
impl Unpin for YoutubeDL
impl UnwindSafe for YoutubeDL
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more