pub struct ProprietaryCellBackend { /* private fields */ }Expand description
Simulated proprietary host: tracks active cells; destroy removes all host-side state for that id.
Implementations§
Source§impl ProprietaryCellBackend
impl ProprietaryCellBackend
pub fn new() -> Self
Sourcepub async fn tracked_cell_count(&self) -> usize
pub async fn tracked_cell_count(&self) -> usize
How many cells the host still considers live (tests + operators; not an auth decision).
Sourcepub async fn has_tracked_state(&self, cell_id: &str) -> bool
pub async fn has_tracked_state(&self, cell_id: &str) -> bool
True if any host-tracked state remains for this cell_id.
Trait Implementations§
Source§impl CellBackend for ProprietaryCellBackend
impl CellBackend for ProprietaryCellBackend
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,
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,
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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Wait for the cell’s workload to complete inside the backend and return
its exit code. Read more
Source§impl Clone for ProprietaryCellBackend
impl Clone for ProprietaryCellBackend
Source§fn clone(&self) -> ProprietaryCellBackend
fn clone(&self) -> ProprietaryCellBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProprietaryCellBackend
impl !RefUnwindSafe for ProprietaryCellBackend
impl Send for ProprietaryCellBackend
impl Sync for ProprietaryCellBackend
impl Unpin for ProprietaryCellBackend
impl UnsafeUnpin for ProprietaryCellBackend
impl !UnwindSafe for ProprietaryCellBackend
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