pub struct Fs<R: Runtime>(/* private fields */);Implementations§
Source§impl<R: Runtime> Fs<R>
impl<R: Runtime> Fs<R>
Sourcepub fn open<P: Into<FilePath>>(
&self,
path: P,
opts: OpenOptions,
) -> Result<File>
pub fn open<P: Into<FilePath>>( &self, path: P, opts: OpenOptions, ) -> Result<File>
Open a file.
§Platform-specific
- iOS: This method will automatically start accessing a security-scoped resource if the path is a file URL.
You must call
stop_accessing_security_scoped_resourcewhen you’re done accessing the file.
Auto Trait Implementations§
impl<R> Freeze for Fs<R>
impl<R> !RefUnwindSafe for Fs<R>
impl<R> Send for Fs<R>
impl<R> Sync for Fs<R>
impl<R> Unpin for Fs<R>
impl<R> UnsafeUnpin for Fs<R>
impl<R> !UnwindSafe for Fs<R>
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