pub struct SessionHandle { /* private fields */ }Expand description
Handle to a provider-side persistent session. Drops auto-destroy the session
on a background task; call SessionHandle::destroy explicitly to await.
Implementations§
Source§impl SessionHandle
impl SessionHandle
pub fn id(&self) -> &str
pub async fn execute( &self, request: SolveRequest, ) -> Result<Solution, AntibotError>
pub async fn solve(&self, url: &str) -> Result<Solution, AntibotError>
pub async fn destroy(self) -> Result<(), AntibotError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionHandle
impl !RefUnwindSafe for SessionHandle
impl Send for SessionHandle
impl Sync for SessionHandle
impl Unpin for SessionHandle
impl UnsafeUnpin for SessionHandle
impl !UnwindSafe for SessionHandle
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