pub struct ClientBuilder<H>where
H: EventHandler + 'static,{ /* private fields */ }Implementations§
Source§impl<H> ClientBuilder<H>where
H: EventHandler + 'static,
impl<H> ClientBuilder<H>where
H: EventHandler + 'static,
pub fn new(token: impl Into<String>, handler: H) -> Result<Self>
pub fn with_cache_config(self, config: CacheConfig) -> Self
pub fn without_cache(self) -> Self
pub fn with_captcha_handler<F, Fut>(self, handler: F) -> Self
pub fn with_request_delay(self, delay: Duration) -> Self
pub fn build(self) -> Client
Auto Trait Implementations§
impl<H> Freeze for ClientBuilder<H>where
H: Freeze,
impl<H> !RefUnwindSafe for ClientBuilder<H>
impl<H> Send for ClientBuilder<H>
impl<H> Sync for ClientBuilder<H>
impl<H> Unpin for ClientBuilder<H>where
H: Unpin,
impl<H> UnsafeUnpin for ClientBuilder<H>where
H: UnsafeUnpin,
impl<H> !UnwindSafe for ClientBuilder<H>
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