Struct imdb_async::Client[][src]

pub struct Client { /* fields omitted */ }

Implementations

impl Client[src]

pub fn new(cache_invalidation_time: Duration, cache_directory: PathBuf) -> Self[src]

pub async fn start_stream(
    &self,
    file: &str
) -> Result<BufReader<impl AsyncRead>, Error>
[src]

pub async fn start_stream_lines(
    &self,
    file: &str
) -> Result<impl Stream<Item = Result<String, Error>>, Error>
[src]

pub async fn get_titles_filtered_split(
    &self,
    movie_ids: &[u64],
    show_ids: &[u64]
) -> Result<(Vec<Movie>, Vec<Show>), Error>
[src]

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

pub async fn stream_titles_filtered(
    &self,
    ids: &[u64]
) -> Result<impl Stream<Item = Result<Title, Error>> + '_, Error>
[src]

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

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

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

pub async fn stream_movies_filtered(
    &self,
    ids: &[u64]
) -> Result<impl Stream<Item = Result<Movie, Error>> + '_, Error>
[src]

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

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

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

pub async fn get_shows_filtered_by_id(
    &self,
    ids: &[u64]
) -> Result<HashMap<u64, Show>, 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.