Struct fbvideo::FbVideo[][src]

pub struct FbVideo<'fb> { /* fields omitted */ }

This struct contains all methods necessary to get video URL or video title from Facebook.

Implementations

impl<'fb> FbVideo<'fb>[src]

pub fn new(url: &'fb str, quality: Quality) -> Self[src]

Generate new instance of FbVideo.

pub async fn get_video_url(&mut self) -> Result<&str, Error>[src]

Get real video URL (often mp4 format) from Facebook URL.

pub async fn get_video_title(&mut self) -> Result<&str, Error>[src]

Get video title from Facebook URL.

Trait Implementations

impl<'fb> Debug for FbVideo<'fb>[src]

Auto Trait Implementations

impl<'fb> RefUnwindSafe for FbVideo<'fb>[src]

impl<'fb> Send for FbVideo<'fb>[src]

impl<'fb> Sync for FbVideo<'fb>[src]

impl<'fb> Unpin for FbVideo<'fb>[src]

impl<'fb> UnwindSafe for FbVideo<'fb>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.