Struct imdb_async::Client [−][src]
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]
&self,
file: &str
) -> Result<BufReader<impl AsyncRead>, Error>
pub async fn start_stream_lines(
&self,
file: &str
) -> Result<impl Stream<Item = Result<String, Error>>, Error>
[src]
&self,
file: &str
) -> Result<impl Stream<Item = Result<String, Error>>, Error>
pub async fn get_titles_filtered_split(
&self,
movie_ids: &[u64],
show_ids: &[u64]
) -> Result<(Vec<Movie>, Vec<Show>), Error>
[src]
&self,
movie_ids: &[u64],
show_ids: &[u64]
) -> Result<(Vec<Movie>, Vec<Show>), Error>
pub async fn get_titles_filtered(
&self,
ids: &[u64]
) -> Result<Vec<Title>, Error>
[src]
&self,
ids: &[u64]
) -> Result<Vec<Title>, Error>
pub async fn stream_titles_filtered(
&self,
ids: &[u64]
) -> Result<impl Stream<Item = Result<Title, Error>> + '_, Error>
[src]
&self,
ids: &[u64]
) -> Result<impl Stream<Item = Result<Title, Error>> + '_, Error>
pub async fn stream_titles(
&self
) -> Result<impl Stream<Item = Result<Title, Error>>, Error>
[src]
&self
) -> Result<impl Stream<Item = Result<Title, Error>>, Error>
pub async fn get_movie_by_name_and_year(
&self,
name: &str,
year: u16
) -> Result<Option<Movie>, Error>
[src]
&self,
name: &str,
year: u16
) -> Result<Option<Movie>, Error>
pub async fn get_movies_filtered(
&self,
ids: &[u64]
) -> Result<Vec<Movie>, Error>
[src]
&self,
ids: &[u64]
) -> Result<Vec<Movie>, Error>
pub async fn stream_movies_filtered(
&self,
ids: &[u64]
) -> Result<impl Stream<Item = Result<Movie, Error>> + '_, Error>
[src]
&self,
ids: &[u64]
) -> Result<impl Stream<Item = Result<Movie, Error>> + '_, Error>
pub async fn stream_movies(
&self
) -> Result<impl Stream<Item = Result<Movie, Error>>, Error>
[src]
&self
) -> Result<impl Stream<Item = Result<Movie, Error>>, Error>
pub async fn get_show_by_name_and_year(
&self,
name: &str,
year: u16
) -> Result<Option<Show>, Error>
[src]
&self,
name: &str,
year: u16
) -> Result<Option<Show>, Error>
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]
&self,
ids: &[u64]
) -> Result<HashMap<u64, Show>, Error>
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]
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<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, 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>,