pub struct AniDbHttpClient { /* private fields */ }Expand description
Async AniDB client
Implementations§
Source§impl AniDbHttpClient
impl AniDbHttpClient
Sourcepub fn new() -> Result<Self, ApiError>
pub fn new() -> Result<Self, ApiError>
Returns client with default rate limit (1 request per 2 seconds).
§Errors
This method fails if reqwest client has failed to initialized
Trait Implementations§
Source§impl Clone for AniDbHttpClient
impl Clone for AniDbHttpClient
Source§fn clone(&self) -> AniDbHttpClient
fn clone(&self) -> AniDbHttpClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AniDbHttpClient
impl !RefUnwindSafe for AniDbHttpClient
impl Send for AniDbHttpClient
impl Sync for AniDbHttpClient
impl Unpin for AniDbHttpClient
impl !UnwindSafe for AniDbHttpClient
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