Struct JobApiClient

Source
pub struct JobApiClient<C: Connect> { /* private fields */ }

Implementations§

Source§

impl<C: Connect> JobApiClient<C>

Source

pub fn new(configuration: Rc<Configuration<C>>) -> JobApiClient<C>

Trait Implementations§

Source§

impl<C: Connect + 'static> JobApi for JobApiClient<C>

Source§

fn create_job_job( &self, job_job: JobJobCreateParams, ) -> Box<dyn Future<Item = CreateJobJobResponse, Error = Error>>

Source§

fn create_job_policy( &self, job_policy: JobPolicyCreateParams, ) -> Box<dyn Future<Item = CreateResponse, Error = Error>>

Source§

fn delete_job_policy( &self, job_policy_id: &str, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn get_job_events( &self, begin: i32, end: i32, job_id: i32, resume: &str, job_type: &str, timeout_ms: i32, state: &str, limit: i32, key: &str, ) -> Box<dyn Future<Item = JobEvents, Error = Error>>

Source§

fn get_job_job( &self, job_job_id: &str, ) -> Box<dyn Future<Item = JobJobs, Error = Error>>

Source§

fn get_job_job_summary( &self, ) -> Box<dyn Future<Item = JobJobSummary, Error = Error>>

Source§

fn get_job_policy( &self, job_policy_id: &str, ) -> Box<dyn Future<Item = JobPolicies, Error = Error>>

Source§

fn get_job_recent( &self, timeout_ms: i32, limit: i32, ) -> Box<dyn Future<Item = JobRecent, Error = Error>>

Source§

fn get_job_reports( &self, begin: i32, end: i32, job_id: i32, resume: &str, job_type: &str, timeout_ms: i32, limit: i32, key: &str, verbose: bool, ) -> Box<dyn Future<Item = JobReports, Error = Error>>

Source§

fn get_job_statistics( &self, devid: i32, job_id: i32, ) -> Box<dyn Future<Item = JobStatistics, Error = Error>>

Source§

fn get_job_type( &self, job_type_id: &str, ) -> Box<dyn Future<Item = JobTypes, Error = Error>>

Source§

fn get_job_types( &self, sort: &str, show_all: bool, dir: &str, ) -> Box<dyn Future<Item = JobTypesExtended, Error = Error>>

Source§

fn list_job_jobs( &self, sort: &str, resume: &str, batch: bool, state: &str, limit: i32, dir: &str, ) -> Box<dyn Future<Item = JobJobsExtended, Error = Error>>

Source§

fn list_job_policies( &self, sort: &str, limit: i32, dir: &str, resume: &str, ) -> Box<dyn Future<Item = JobPoliciesExtended, Error = Error>>

Source§

fn update_job_job( &self, job_job: JobJob, job_job_id: &str, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn update_job_policy( &self, job_policy: JobPolicy, job_policy_id: &str, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn update_job_type( &self, job_type: JobType, job_type_id: &str, ) -> Box<dyn Future<Item = (), Error = Error>>

Auto Trait Implementations§

§

impl<C> Freeze for JobApiClient<C>

§

impl<C> !RefUnwindSafe for JobApiClient<C>

§

impl<C> !Send for JobApiClient<C>

§

impl<C> !Sync for JobApiClient<C>

§

impl<C> Unpin for JobApiClient<C>

§

impl<C> !UnwindSafe for JobApiClient<C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Err = <U as TryFrom<T>>::Err

Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>

Source§

impl<T> ErasedDestructor for T
where T: 'static,