pub struct GVisorCellBackend { /* private fields */ }Expand description
gVisor-backed CellBackend.
All real runsc invocations live in create() / destroy() /
wait_for_in_vm_exit(). The struct holds only an in-memory id → child
map; no persistent state.
Implementations§
Trait Implementations§
Source§impl CellBackend for GVisorCellBackend
impl CellBackend for GVisorCellBackend
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
spec: &'life1 ExecutionCellDocument,
) -> Pin<Box<dyn Future<Output = Result<CellHandle, CellosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn wait_for_in_vm_exit<'life0, 'life1, 'async_trait>(
&'life0 self,
cell_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<Result<i32, CellosError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn wait_for_in_vm_exit<'life0, 'life1, 'async_trait>(
&'life0 self,
cell_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<Result<i32, CellosError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Wait for the cell’s workload to complete inside the backend and return
its exit code. Read more
fn destroy<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 CellHandle,
) -> Pin<Box<dyn Future<Output = Result<TeardownReport, CellosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for GVisorCellBackend
impl !RefUnwindSafe for GVisorCellBackend
impl Send for GVisorCellBackend
impl Sync for GVisorCellBackend
impl Unpin for GVisorCellBackend
impl UnsafeUnpin for GVisorCellBackend
impl !UnwindSafe for GVisorCellBackend
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