Struct wasmer_vfs::OpenOptions
source · [−]pub struct OpenOptions { /* private fields */ }
Implementations
sourceimpl OpenOptions
impl OpenOptions
pub fn new(opener: Box<dyn FileOpener>) -> Self
pub fn options(&mut self, options: OpenOptionsConfig) -> &mut Self
pub fn read(&mut self, read: bool) -> &mut Self
pub fn write(&mut self, write: bool) -> &mut Self
pub fn append(&mut self, append: bool) -> &mut Self
pub fn truncate(&mut self, truncate: bool) -> &mut Self
pub fn create(&mut self, create: bool) -> &mut Self
pub fn create_new(&mut self, create_new: bool) -> &mut Self
pub fn open<P: AsRef<Path>>(
&mut self,
path: P
) -> Result<Box<dyn VirtualFile + Send + Sync + 'static>>
Auto Trait Implementations
impl !RefUnwindSafe for OpenOptions
impl !Send for OpenOptions
impl !Sync for OpenOptions
impl Unpin for OpenOptions
impl !UnwindSafe for OpenOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more