Struct fbvideo::FbVideo [−][src]
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,