pub struct TvApi<'a> { /* private fields */ }Expand description
Accessor for the TV API.
Implementations§
Source§impl<'a> TvApi<'a>
impl<'a> TvApi<'a>
Sourcepub async fn channels(&self) -> Result<LichessTvChannels>
pub async fn channels(&self) -> Result<LichessTvChannels>
Gets the current best game for each channel. GET /api/tv/channels
Sourcepub async fn feed(
&self,
) -> Result<BoxStream<'static, Result<LichessTvFeedEvent>>>
pub async fn feed( &self, ) -> Result<BoxStream<'static, Result<LichessTvFeedEvent>>>
Streams the feed of the current overall featured game.
GET /api/tv/feed
Sourcepub async fn channel_feed(
&self,
channel: &str,
) -> Result<BoxStream<'static, Result<LichessTvFeedEvent>>>
pub async fn channel_feed( &self, channel: &str, ) -> Result<BoxStream<'static, Result<LichessTvFeedEvent>>>
Streams the feed of a specific channel’s featured game.
GET /api/tv/{channel}/feed
Sourcepub fn channel_games(&self, channel: &'a str) -> TvChannelGamesRequest<'a>
pub fn channel_games(&self, channel: &'a str) -> TvChannelGamesRequest<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TvApi<'a>
impl<'a> !UnwindSafe for TvApi<'a>
impl<'a> Freeze for TvApi<'a>
impl<'a> Send for TvApi<'a>
impl<'a> Sync for TvApi<'a>
impl<'a> Unpin for TvApi<'a>
impl<'a> UnsafeUnpin for TvApi<'a>
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