Struct rustube::blocking::VideoFetcher[][src]

pub struct VideoFetcher(_);
This is supported on crate feature blocking only.

A synchronous wrapper around VideoFetcher.

Implementations

impl VideoFetcher[src]

pub fn from_url(url: &Url) -> Result<Self>[src]

This is supported on crate feature fetch only.

Constructs a VideoFetcher from an Url.

Errors

pub fn from_id(video_id: IdBuf) -> Result<Self>[src]

This is supported on crate feature fetch only.

Constructs a VideoFetcher from an Id.

Errors

When reqwest fails to initialize an new Client.

pub fn from_id_with_client(video_id: IdBuf, client: Client) -> Self[src]

This is supported on crate feature fetch only.

Constructs a VideoFetcher from an Id and an existing Client. There are no special constrains, what the Client has to look like.

pub fn fetch(self) -> Result<VideoDescrambler>[src]

This is supported on crate feature fetch only.

A synchronous wrapper around VideoFetcher::fetch.

Methods from Deref<Target = AsyncVideoFetcher>

pub fn video_id(&self) -> Id<'_>[src]

This is supported on crate feature fetch only.

The id of the video.

pub fn watch_url(&self) -> &Url[src]

This is supported on crate feature fetch only.

The url, under witch the video can be watched.

Trait Implementations

impl Clone for VideoFetcher[src]

This is supported on crate feature fetch only.

impl Debug for VideoFetcher[src]

This is supported on crate feature fetch only.

impl Deref for VideoFetcher[src]

This is supported on crate feature fetch only.

type Target = AsyncVideoFetcher

The resulting type after dereferencing.

impl DerefMut for VideoFetcher[src]

This is supported on crate feature fetch only.

impl Display for VideoFetcher[src]

This is supported on crate feature fetch only.

impl Eq for VideoFetcher[src]

This is supported on crate feature fetch only.

impl PartialEq<VideoFetcher> for VideoFetcher[src]

This is supported on crate feature fetch only.

impl StructuralEq for VideoFetcher[src]

This is supported on crate feature fetch only.

impl StructuralPartialEq for VideoFetcher[src]

This is supported on crate feature fetch only.

Auto Trait Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.