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]
cache_invalidation_time: Duration,
cache_directory: impl AsRef<Path>
) -> Result<Self, Error>
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]
&mut self,
ids: &[u64]
) -> Result<Vec<Title>, Error>
pub async fn stream_titles(
&mut self
) -> Result<impl Stream<Item = Result<Title, Error>>, Error>
[src]
&mut self
) -> Result<impl Stream<Item = Result<Title, Error>>, Error>
pub async fn get_movie_by_name_and_year(
&mut self,
name: &str,
year: u16
) -> Result<Option<Movie>, Error>
[src]
&mut self,
name: &str,
year: u16
) -> Result<Option<Movie>, Error>
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]
&mut self
) -> Result<impl Stream<Item = Result<Movie, Error>>, Error>
pub async fn get_show_by_name_and_year(
&mut self,
name: &str,
year: u16
) -> Result<Option<Show>, Error>
[src]
&mut self,
name: &str,
year: u16
) -> Result<Option<Show>, Error>
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]
&mut self,
ids: &[u64]
) -> Result<HashMap<u64, Show, FnvBuildHasher>, 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>,