Struct rustube::blocking::VideoFetcher [−][src]
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
- When
Id::from_raw
fails to extracted the videos id from the url. - When
reqwest
fails to initialize an newClient
.
pub fn from_id(video_id: IdBuf) -> Result<Self>
[src]
This is supported on crate feature
fetch
only.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.fn clone(&self) -> VideoFetcher
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
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.
fn deref(&self) -> &Self::Target
[src]
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.fn eq(&self, other: &VideoFetcher) -> bool
[src]
fn ne(&self, other: &VideoFetcher) -> bool
[src]
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
impl !RefUnwindSafe for VideoFetcher
[src]
impl Send for VideoFetcher
[src]
impl Sync for VideoFetcher
[src]
impl Unpin for VideoFetcher
[src]
impl !UnwindSafe for VideoFetcher
[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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,