pub struct ExecdClient { /* private fields */ }Implementations§
Source§impl ExecdClient
impl ExecdClient
pub fn new(endpoint_url: String) -> Self
pub async fn run_command(&self, req: &ExecRequest) -> CiabResult<ExecResult>
pub async fn run_command_stream( &self, req: &ExecRequest, tx: Sender<StreamEvent>, sandbox_id: Uuid, ) -> CiabResult<i32>
pub async fn upload_file( &self, path: &str, content: &[u8], mode: u32, ) -> CiabResult<()>
pub async fn download_file(&self, path: &str) -> CiabResult<Vec<u8>>
pub async fn list_files(&self, pattern: &str) -> CiabResult<Vec<FileInfo>>
pub async fn get_metrics(&self) -> CiabResult<ResourceStats>
Trait Implementations§
Source§impl Clone for ExecdClient
impl Clone for ExecdClient
Source§fn clone(&self) -> ExecdClient
fn clone(&self) -> ExecdClient
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 ExecdClient
impl !RefUnwindSafe for ExecdClient
impl Send for ExecdClient
impl Sync for ExecdClient
impl Unpin for ExecdClient
impl UnsafeUnpin for ExecdClient
impl !UnwindSafe for ExecdClient
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