pub struct SandboxPoint { /* private fields */ }Implementations§
Source§impl SandboxPoint
impl SandboxPoint
pub fn sandbox_id(&self) -> SandboxId
pub fn ns(&self) -> Option<u64>
pub fn thread(&self) -> u64
pub fn process(&self) -> u64
pub fn operations(&self) -> u64
pub fn event(&self) -> u64
pub fn at(&self) -> &StopEvent
pub fn stats(&self) -> &HashMap<String, u64>
pub fn step(&self) -> StepBuilder
pub fn stat(&self, path: impl Into<String>) -> StatBuilder
pub async fn list_dir( &self, path: impl AsRef<str>, ) -> Result<Vec<PathDirectoryEntry>>
pub async fn read_file(&self, path: impl AsRef<str>) -> Result<Vec<u8>>
Trait Implementations§
Source§impl Clone for SandboxPoint
impl Clone for SandboxPoint
Auto Trait Implementations§
impl !RefUnwindSafe for SandboxPoint
impl !UnwindSafe for SandboxPoint
impl Forget for SandboxPoint
impl Freeze for SandboxPointwhere
*const ArcInner<Connection> is !null: Freeze,
PhantomData<ArcInner<Connection>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<DecodedArgument>: Freeze,
PhantomData<(String, u64)>: Freeze,
impl Move for SandboxPoint
impl Send for SandboxPoint
impl Sync for SandboxPoint
impl Unpin for SandboxPoint
impl UnsafeUnpin for SandboxPointwhere
*const ArcInner<Connection> is !null: UnsafeUnpin,
PhantomData<ArcInner<Connection>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<DecodedArgument>: UnsafeUnpin,
PhantomData<(String, u64)>: UnsafeUnpin,
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