pub struct EngineClient { /* private fields */ }Expand description
HTTP client for Engine external-task endpoints.
Implementations§
Source§impl EngineClient
impl EngineClient
pub fn new(base_url: impl Into<String>) -> Self
pub fn tenant_id(self, id: impl Into<String>) -> Self
Sourcepub async fn fetch_and_lock(
&self,
worker_id: &str,
task_types: &[String],
max_tasks: usize,
lock_duration_ms: u64,
) -> Result<Vec<ExternalTask>, ClientError>
pub async fn fetch_and_lock( &self, worker_id: &str, task_types: &[String], max_tasks: usize, lock_duration_ms: u64, ) -> Result<Vec<ExternalTask>, ClientError>
Fetch and lock tasks from the Engine.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EngineClient
impl !UnwindSafe for EngineClient
impl Forget for EngineClient
impl Freeze for EngineClient
impl Send for EngineClient
impl Sync for EngineClient
impl Unpin for EngineClient
impl UnsafeUnpin for EngineClient
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