[−][src]Struct lib_remotebuild_rs::librb::LibRb
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 self
s config
pub async fn list_jobs<'_>(
&'_ self,
limit: i32
) -> Result<RequestResult<ListJobs>, Error>
[src]
&'_ self,
limit: i32
) -> Result<RequestResult<ListJobs>, Error>
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]
&'_ self,
job_id: u32
) -> Result<RequestResult<Info>, Error>
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]
&'_ self,
job_type: Type,
upload_type: UploadType,
args: HashMap<String, String>,
disable_ccache: bool
) -> Result<RequestResult<AddJob>, Error>
Creates and adds a new job
pub async fn set_job_state<'_>(
&'_ self,
job_id: u32,
state: Status
) -> Result<(), Error>
[src]
&'_ self,
job_id: u32,
state: Status
) -> Result<(), Error>
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]
&'_ self,
username: String,
password: String
) -> Result<RequestResult<Login>, Error>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,