pub struct OpenSandboxClient { /* private fields */ }Implementations§
Source§impl OpenSandboxClient
impl OpenSandboxClient
pub fn new(base_url: String, api_key: Option<String>) -> Self
pub async fn create_sandbox( &self, request: &CreateSandboxRequest, ) -> CiabResult<OpenSandboxResponse>
pub async fn get_sandbox( &self, sandbox_id: &str, ) -> CiabResult<OpenSandboxResponse>
pub async fn list_sandboxes(&self) -> CiabResult<Vec<OpenSandboxResponse>>
pub async fn delete_sandbox(&self, sandbox_id: &str) -> CiabResult<()>
pub async fn pause_sandbox(&self, sandbox_id: &str) -> CiabResult<()>
pub async fn resume_sandbox(&self, sandbox_id: &str) -> CiabResult<()>
pub async fn renew_expiration( &self, sandbox_id: &str, duration_secs: u64, ) -> CiabResult<()>
Trait Implementations§
Source§impl Clone for OpenSandboxClient
impl Clone for OpenSandboxClient
Source§fn clone(&self) -> OpenSandboxClient
fn clone(&self) -> OpenSandboxClient
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 OpenSandboxClient
impl !RefUnwindSafe for OpenSandboxClient
impl Send for OpenSandboxClient
impl Sync for OpenSandboxClient
impl Unpin for OpenSandboxClient
impl UnsafeUnpin for OpenSandboxClient
impl !UnwindSafe for OpenSandboxClient
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