pub struct Files { /* private fields */ }Expand description
A sandbox’s files: Sandbox::files.
Implementations§
Source§impl Files
impl Files
Sourcepub async fn write(&self, path: &str, data: impl Into<Vec<u8>>) -> Result<()>
pub async fn write(&self, path: &str, data: impl Into<Vec<u8>>) -> Result<()>
Writes data to the file at path, in place of what it held; a new
file gets mode 0o644.
Auto Trait Implementations§
impl !RefUnwindSafe for Files
impl !UnwindSafe for Files
impl Forget for Files
impl Freeze for Files
impl Send for Files
impl Sync for Files
impl Unpin for Files
impl UnsafeUnpin for Files
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