pub struct SystemService { /* private fields */ }Expand description
Jenkins system-level (core) APIs.
Implementations§
Source§impl SystemService
impl SystemService
Sourcepub async fn overall_load(&self) -> Result<Value, Error>
pub async fn overall_load(&self) -> Result<Value, Error>
GET /overallLoad/api/json
Sourcepub async fn load_statistics(&self) -> Result<Value, Error>
pub async fn load_statistics(&self) -> Result<Value, Error>
GET /loadStatistics/api/json
Sourcepub async fn update_config_xml(
&self,
xml: impl Into<Vec<u8>>,
) -> Result<(), Error>
pub async fn update_config_xml( &self, xml: impl Into<Vec<u8>>, ) -> Result<(), Error>
POST /config.xml with XML body.
Sourcepub async fn quiet_down(&self) -> Result<(), Error>
pub async fn quiet_down(&self) -> Result<(), Error>
POST /quietDown
Sourcepub async fn cancel_quiet_down(&self) -> Result<(), Error>
pub async fn cancel_quiet_down(&self) -> Result<(), Error>
POST /cancelQuietDown
Sourcepub async fn reload_configuration(&self) -> Result<(), Error>
pub async fn reload_configuration(&self) -> Result<(), Error>
POST /reload
Sourcepub async fn safe_restart(&self) -> Result<(), Error>
pub async fn safe_restart(&self) -> Result<(), Error>
POST /safeRestart
Trait Implementations§
Source§impl Clone for SystemService
impl Clone for SystemService
Source§fn clone(&self) -> SystemService
fn clone(&self) -> SystemService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SystemService
impl !RefUnwindSafe for SystemService
impl Send for SystemService
impl Sync for SystemService
impl Unpin for SystemService
impl !UnwindSafe for SystemService
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