Struct deno_fs::RealFs

source ·
pub struct RealFs;

Trait Implementations§

source§

impl Clone for RealFs

source§

fn clone(&self) -> RealFs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RealFs

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FileSystem for RealFs

source§

fn cwd(&self) -> FsResult<PathBuf>

source§

fn tmp_dir(&self) -> FsResult<PathBuf>

source§

fn chdir(&self, path: &Path) -> FsResult<()>

source§

fn umask(&self, mask: Option<u32>) -> FsResult<u32>

source§

fn open_sync(&self, path: &Path, options: OpenOptions) -> FsResult<Rc<dyn File>>

source§

fn open_async<'life0, 'async_trait>( &'life0 self, path: PathBuf, options: OpenOptions ) -> Pin<Box<dyn Future<Output = FsResult<Rc<dyn File>>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn mkdir_sync(&self, path: &Path, recursive: bool, mode: u32) -> FsResult<()>

source§

fn mkdir_async<'life0, 'async_trait>( &'life0 self, path: PathBuf, recursive: bool, mode: u32 ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn chmod_sync(&self, path: &Path, mode: u32) -> FsResult<()>

source§

fn chmod_async<'life0, 'async_trait>( &'life0 self, path: PathBuf, mode: u32 ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn chown_sync( &self, path: &Path, uid: Option<u32>, gid: Option<u32> ) -> FsResult<()>

source§

fn chown_async<'life0, 'async_trait>( &'life0 self, path: PathBuf, uid: Option<u32>, gid: Option<u32> ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn remove_sync(&self, path: &Path, recursive: bool) -> FsResult<()>

source§

fn remove_async<'life0, 'async_trait>( &'life0 self, path: PathBuf, recursive: bool ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn copy_file_sync(&self, from: &Path, to: &Path) -> FsResult<()>

source§

fn copy_file_async<'life0, 'async_trait>( &'life0 self, from: PathBuf, to: PathBuf ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn stat_sync(&self, path: &Path) -> FsResult<FsStat>

source§

fn stat_async<'life0, 'async_trait>( &'life0 self, path: PathBuf ) -> Pin<Box<dyn Future<Output = FsResult<FsStat>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn lstat_sync(&self, path: &Path) -> FsResult<FsStat>

source§

fn lstat_async<'life0, 'async_trait>( &'life0 self, path: PathBuf ) -> Pin<Box<dyn Future<Output = FsResult<FsStat>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn realpath_sync(&self, path: &Path) -> FsResult<PathBuf>

source§

fn realpath_async<'life0, 'async_trait>( &'life0 self, path: PathBuf ) -> Pin<Box<dyn Future<Output = FsResult<PathBuf>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn read_dir_sync(&self, path: &Path) -> FsResult<Vec<FsDirEntry>>

source§

fn read_dir_async<'life0, 'async_trait>( &'life0 self, path: PathBuf ) -> Pin<Box<dyn Future<Output = FsResult<Vec<FsDirEntry>>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn rename_sync(&self, oldpath: &Path, newpath: &Path) -> FsResult<()>

source§

fn rename_async<'life0, 'async_trait>( &'life0 self, oldpath: PathBuf, newpath: PathBuf ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn truncate_sync(&self, path: &Path, len: u64) -> FsResult<()>

source§

fn truncate_async<'life0, 'async_trait>( &'life0 self, path: PathBuf, len: u64 ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn utime_sync( &self, path: &Path, atime_secs: i64, atime_nanos: u32, mtime_secs: i64, mtime_nanos: u32 ) -> FsResult<()>

source§

fn utime_async<'life0, 'async_trait>( &'life0 self, path: PathBuf, atime_secs: i64, atime_nanos: u32, mtime_secs: i64, mtime_nanos: u32 ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn write_file_sync( &self, path: &Path, options: OpenOptions, data: &[u8] ) -> FsResult<()>

source§

fn write_file_async<'life0, 'async_trait>( &'life0 self, path: PathBuf, options: OpenOptions, data: Vec<u8> ) -> Pin<Box<dyn Future<Output = FsResult<()>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn read_file_sync(&self, path: &Path) -> FsResult<Vec<u8>>

source§

fn read_file_async<'life0, 'async_trait>( &'life0 self, path: PathBuf ) -> Pin<Box<dyn Future<Output = FsResult<Vec<u8>>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn is_file_sync(&self, path: &Path) -> bool

source§

fn is_dir_sync(&self, path: &Path) -> bool

source§

fn exists_sync(&self, path: &Path) -> bool

source§

fn read_text_file_sync(&self, path: &Path) -> FsResult<String>

source§

fn read_text_file_async<'life0, 'async_trait>( &'life0 self, path: PathBuf ) -> Pin<Box<dyn Future<Output = FsResult<String>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> MaybeSend for Twhere T: ?Sized,

source§

impl<T> MaybeSync for Twhere T: ?Sized,