[][src]Struct lib_remotebuild_rs::librb::LibRb

pub struct LibRb { /* fields omitted */ }

Implementations

impl LibRb[src]

pub fn new_aurbuild<S: AsRef<str>>(&self, pkg_name: S) -> AURBuild<'_>[src]

Return a new AURBuild which allows you to create build AUR jobs

pub fn auth_from_conf(&self) -> Authorization[src]

Return Authorization created from selfs config

pub async fn list_jobs<'_>(
    &'_ self,
    limit: i32
) -> Result<RequestResult<ListJobs>, Error>
[src]

List all running and past jobs. limit indicates the limit how much to display

pub async fn cancel_job<'_>(&'_ self, job_id: u32) -> Result<(), Error>[src]

Cancel a running job

pub async fn job_info<'_>(
    &'_ self,
    job_id: u32
) -> Result<RequestResult<Info>, Error>
[src]

Gets information about a job

pub async fn add_job<'_>(
    &'_ self,
    job_type: Type,
    upload_type: UploadType,
    args: HashMap<String, String>,
    disable_ccache: bool
) -> Result<RequestResult<AddJob>, Error>
[src]

Creates and adds a new job

pub async fn set_job_state<'_>(
    &'_ self,
    job_id: u32,
    state: Status
) -> Result<(), Error>
[src]

Set a jobs state either to paused or running This allows to pause/continue a task

pub async fn login<'_>(
    &'_ self,
    username: String,
    password: String
) -> Result<RequestResult<Login>, Error>
[src]

Login into an existing account. Returns the token on success

Auto Trait Implementations

impl RefUnwindSafe for LibRb

impl Send for LibRb

impl Sync for LibRb

impl Unpin for LibRb

impl UnwindSafe for LibRb

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.