Struct oas_core::jobs::OcypodClient
source · [−]pub struct OcypodClient { /* private fields */ }
Implementations
sourceimpl OcypodClient
impl OcypodClient
pub fn new(base_url: String) -> Self
pub async fn put_queue(&self, name: &str, queue: Queue) -> Result<()>
pub async fn put_job(&self, queue: &str, job: JobCreate) -> Result<JobId>
pub async fn take_job(&self, queue: &str) -> Result<Option<JobInput>>
pub async fn update_job(
&self,
job_id: JobId,
status: Option<JobStatus>,
output: Option<JobOutput>
) -> Result<()>
pub async fn get_job(&self, job_id: JobId) -> Result<JobInfo>
pub async fn delete_job(&self, job_id: JobId) -> Result<()>
pub async fn get_queues(&self) -> Result<Vec<String>>
pub async fn fetch_filtered(&self, filter: JobFilter) -> Result<Vec<JobInfo>>
Trait Implementations
sourceimpl Clone for OcypodClient
impl Clone for OcypodClient
sourcefn clone(&self) -> OcypodClient
fn clone(&self) -> OcypodClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for OcypodClient
impl Send for OcypodClient
impl Sync for OcypodClient
impl Unpin for OcypodClient
impl !UnwindSafe for OcypodClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self