Struct imdb_async::Client[][src]

pub struct Client { /* fields omitted */ }

Implementations

impl Client[src]

pub async fn new(
    cache_invalidation_time: Duration,
    cache_directory: impl AsRef<Path>
) -> Result<Self, Error>
[src]

pub async fn get_title(&mut self, id: u64) -> Result<Title, Error>[src]

pub async fn get_titles_filtered(
    &mut self,
    ids: &[u64]
) -> Result<Vec<Title>, Error>
[src]

pub async fn stream_titles(
    &mut self
) -> Result<impl Stream<Item = Result<Title, Error>>, Error>
[src]

pub async fn get_movie_by_name_and_year(
    &mut self,
    name: &str,
    year: u16
) -> Result<Option<Movie>, Error>
[src]

pub async fn get_movie(&mut self, id: u64) -> Result<Movie, Error>[src]

pub async fn get_movies(&mut self, ids: &[u64]) -> Result<Vec<Movie>, Error>[src]

pub async fn stream_movies(
    &mut self
) -> Result<impl Stream<Item = Result<Movie, Error>>, Error>
[src]

pub async fn get_show_by_name_and_year(
    &mut self,
    name: &str,
    year: u16
) -> Result<Option<Show>, Error>
[src]

pub async fn get_shows(&mut self, ids: &[u64]) -> Result<Vec<Show>, Error>[src]

pub async fn get_show(&mut self, id: u64) -> Result<Show, Error>[src]

pub async fn get_shows_by_id(
    &mut self,
    ids: &[u64]
) -> Result<HashMap<u64, Show, FnvBuildHasher>, Error>
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

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<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.