pub struct HttpSolverService { /* private fields */ }Implementations§
Source§impl HttpSolverService
impl HttpSolverService
pub fn new(base_url: impl Into<String>) -> HttpSolverService
pub fn with_timeout( base_url: impl Into<String>, timeout: Duration, ) -> HttpSolverService
pub fn base_url(&self) -> &str
Trait Implementations§
Source§impl SolverService for HttpSolverService
impl SolverService for HttpSolverService
fn solve( &self, request: &SolveRequest, ) -> Result<SolveResponse, SolverForgeError>
fn solve_async( &self, request: &SolveRequest, ) -> Result<SolveHandle, SolverForgeError>
fn get_status( &self, handle: &SolveHandle, ) -> Result<SolveStatus, SolverForgeError>
fn get_best_solution( &self, handle: &SolveHandle, ) -> Result<Option<SolveResponse>, SolverForgeError>
fn stop(&self, handle: &SolveHandle) -> Result<(), SolverForgeError>
fn is_available(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for HttpSolverService
impl !UnwindSafe for HttpSolverService
impl Freeze for HttpSolverService
impl Send for HttpSolverService
impl Sync for HttpSolverService
impl Unpin for HttpSolverService
impl UnsafeUnpin for HttpSolverService
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