pub struct ServicesHandler { /* private fields */ }
Expand description
Services handler
Implementations§
Source§impl ServicesHandler
impl ServicesHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn update(
&self,
service_id: &str,
request: ServiceConfigRequest,
) -> Result<Service>
pub async fn update( &self, service_id: &str, request: ServiceConfigRequest, ) -> Result<Service>
Update service configuration
Sourcepub async fn status(&self, service_id: &str) -> Result<ServiceStatus>
pub async fn status(&self, service_id: &str) -> Result<ServiceStatus>
Get service status
Sourcepub async fn restart(&self, service_id: &str) -> Result<ServiceStatus>
pub async fn restart(&self, service_id: &str) -> Result<ServiceStatus>
Restart service
Sourcepub async fn stop(&self, service_id: &str) -> Result<ServiceStatus>
pub async fn stop(&self, service_id: &str) -> Result<ServiceStatus>
Stop service
Sourcepub async fn start(&self, service_id: &str) -> Result<ServiceStatus>
pub async fn start(&self, service_id: &str) -> Result<ServiceStatus>
Start service
Auto Trait Implementations§
impl Freeze for ServicesHandler
impl !RefUnwindSafe for ServicesHandler
impl Send for ServicesHandler
impl Sync for ServicesHandler
impl Unpin for ServicesHandler
impl !UnwindSafe for ServicesHandler
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