pub struct E2BClient { /* private fields */ }Implementations§
Source§impl E2BClient
impl E2BClient
pub fn new(api_key: String) -> Self
pub async fn create_sandbox(&self) -> Result<String, Box<dyn Error>>
pub async fn execute_code( &self, sandbox_id: String, code: &str, ) -> Result<Receiver<ExecuteResponse>, Box<dyn Error>>
pub async fn kill_sandbox(&self, sandbox_id: &str) -> Result<(), Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for E2BClient
impl !RefUnwindSafe for E2BClient
impl Send for E2BClient
impl Sync for E2BClient
impl Unpin for E2BClient
impl !UnwindSafe for E2BClient
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