pub struct WebEmbeddedClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl YouTubeClient for WebEmbeddedClient
impl YouTubeClient for WebEmbeddedClient
fn name(&self) -> &str
fn client_name(&self) -> &str
fn client_version(&self) -> &str
fn user_agent(&self) -> &str
fn is_embedded(&self) -> bool
fn can_handle_request(&self, identifier: &str) -> bool
fn search<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
context: &'life2 Value,
oauth: Arc<YouTubeOAuth>,
) -> Pin<Box<dyn Future<Output = AnyResult<Vec<Track>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_track_info<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_track_id: &'life1 str,
_context: &'life2 Value,
_oauth: Arc<YouTubeOAuth>,
) -> Pin<Box<dyn Future<Output = AnyResult<Option<Track>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_playlist<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_playlist_id: &'life1 str,
_context: &'life2 Value,
_oauth: Arc<YouTubeOAuth>,
) -> Pin<Box<dyn Future<Output = AnyResult<Option<(Vec<Track>, String)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve_url<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_context: &'life2 Value,
_oauth: Arc<YouTubeOAuth>,
) -> Pin<Box<dyn Future<Output = AnyResult<Option<Track>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_track_url<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
track_id: &'life1 str,
context: &'life2 Value,
cipher_manager: Arc<YouTubeCipherManager>,
oauth: Arc<YouTubeOAuth>,
) -> Pin<Box<dyn Future<Output = AnyResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_player_body<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
track_id: &'life1 str,
visitor_data: Option<&'life2 str>,
_oauth: Arc<YouTubeOAuth>,
) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn supports_oauth(&self) -> bool
fn requires_embed_workaround(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for WebEmbeddedClient
impl !UnwindSafe for WebEmbeddedClient
impl Freeze for WebEmbeddedClient
impl Send for WebEmbeddedClient
impl Sync for WebEmbeddedClient
impl Unpin for WebEmbeddedClient
impl UnsafeUnpin for WebEmbeddedClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more