pub struct Bot { /* private fields */ }
Expand description
A bot that is logged in.
Implementations§
Source§impl Bot
impl Bot
pub async fn fetch(&self, spec: PageSpec) -> Result<Page>
pub async fn page_info_all<E: DeserializeOwned>( &self, query: Query, spec: PageSpec, ) -> Result<PageResponse<E>>
pub async fn control(&self) -> MutexGuard<'_, Interval>
pub fn options(&self) -> &BotOptions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bot
impl !RefUnwindSafe for Bot
impl Send for Bot
impl Sync for Bot
impl Unpin for Bot
impl !UnwindSafe for Bot
Blanket Implementations§
Source§impl<T> AccessExt for T
impl<T> AccessExt for T
fn get(&self, action: Action) -> RequestBuilder
fn post(&self, action: Action) -> RequestBuilder
fn get_csrf_token( &self, ) -> Pin<Box<dyn Future<Output = Result<CsrfToken>> + Send + Sync>>
fn get_token<T: Token>( &self, ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + Sync>>
fn query_all(&self, query: Query) -> GeneratorStream<QueryAllGenerator<Self>>
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