pub struct ServerClient { /* private fields */ }Implementations§
Source§impl ServerClient
impl ServerClient
pub fn new(config: ServerConfig) -> Result<Self>
pub async fn health(&self) -> Result<Value>
pub async fn status(&self) -> Result<Value>
pub async fn list_formations(&self) -> Result<Value>
pub async fn get_formation(&self, formation_id: &str) -> Result<Value>
pub async fn stop_formation(&self, formation_id: &str) -> Result<Value>
pub async fn start_formation(&self, formation_id: &str) -> Result<Value>
pub async fn restart_formation(&self, formation_id: &str) -> Result<Value>
pub async fn rollback_formation(&self, formation_id: &str) -> Result<Value>
pub async fn delete_formation(&self, formation_id: &str) -> Result<Value>
pub async fn cancel_update(&self, formation_id: &str) -> Result<Value>
pub async fn deploy_formation( &self, formation_id: &str, payload: Value, ) -> Result<Value>
pub async fn update_formation( &self, formation_id: &str, payload: Value, ) -> Result<Value>
pub async fn get_formation_logs( &self, formation_id: &str, limit: Option<u32>, ) -> Result<Value>
pub async fn get_server_logs(&self, limit: Option<u32>) -> Result<Value>
pub fn deploy_formation_stream( &self, formation_id: &str, payload: Value, ) -> impl Stream<Item = Result<SseEvent>> + '_
pub fn stream_formation_logs( &self, formation_id: &str, ) -> impl Stream<Item = Result<SseEvent>> + '_
Trait Implementations§
Source§impl Clone for ServerClient
impl Clone for ServerClient
Source§fn clone(&self) -> ServerClient
fn clone(&self) -> ServerClient
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 ServerClient
impl !RefUnwindSafe for ServerClient
impl Send for ServerClient
impl Sync for ServerClient
impl Unpin for ServerClient
impl UnsafeUnpin for ServerClient
impl !UnwindSafe for ServerClient
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