Trait rsget_lib::Streamable

source ·
pub trait Streamable {
    fn new(url: String) -> Result<Box<Self>, StreamError>
    where
        Self: Sized
; fn get_title(&self) -> Option<String>; fn get_author(&self) -> Option<String>; fn is_online(&self) -> bool; fn get_stream(&self) -> Result<StreamType, StreamError>; fn get_ext(&self) -> String; fn get_default_name(&self) -> String; fn download(&self, path: String) -> Result<u64, StreamError>; }

Required Methods§

Creates a new streamable

Returns the title of the stream if possible

Returns the author of the stream if possible

Returns if the stream is online

Gets the url of the stream

Returns what extension the stream should be

Gets the default name of the stream

Downloads the stream to a file

Implementors§