pub trait AsyncOptionPathExt<T: PathExt>: Future<Output = Result<Option<T>>> + Sendwhere
Option<T>: OptionPathExt<T>,{
Show 46 methods
// Required methods
fn metadata_async(
self,
) -> impl Future<Output = Result<Option<Metadata>>> + Send;
fn symlink_metadata_async(
self,
) -> impl Future<Output = Result<Option<Metadata>>> + Send;
fn canonicalize_async(
self,
) -> impl Future<Output = Result<Option<PathBuf>>> + Send;
fn read_link_async(
self,
) -> impl Future<Output = Result<Option<PathBuf>>> + Send;
fn read_dir_async(
self,
) -> impl Future<Output = Result<Option<ReadDir>>> + Send;
fn try_exists_async(
self,
) -> impl Future<Output = Result<Option<bool>>> + Send;
fn try_is_file(self) -> impl Future<Output = Result<Option<bool>>> + Send;
fn try_is_dir(self) -> impl Future<Output = Result<Option<bool>>> + Send;
fn try_is_symlink(self) -> impl Future<Output = Result<Option<bool>>> + Send;
fn try_exists_nofollow(
self,
) -> impl Future<Output = Result<Option<bool>>> + Send;
fn try_is_file_nofollow(
self,
) -> impl Future<Output = Result<Option<bool>>> + Send;
fn try_is_dir_nofollow(
self,
) -> impl Future<Output = Result<Option<bool>>> + Send;
fn try_is_read_link_broken(
self,
) -> impl Future<Output = Result<Option<bool>>> + Send;
fn try_is_read_dir_empty(
self,
) -> impl Future<Output = Result<Option<bool>>> + Send;
fn create_new(self) -> impl Future<Output = Result<Option<File>>> + Send;
fn create(self) -> impl Future<Output = Result<Option<File>>> + Send;
fn open(self) -> impl Future<Output = Result<Option<File>>> + Send;
fn read(self) -> impl Future<Output = Result<Option<Vec<u8>>>> + Send;
fn read_to_string(
self,
) -> impl Future<Output = Result<Option<String>>> + Send;
fn read_lines(
self,
) -> impl Future<Output = Result<Option<Lines<BufReader<File>>>>> + Send;
fn create_dir_all(self) -> impl Future<Output = Result<Option<T>>> + Send;
fn create_dir(self) -> impl Future<Output = Result<Option<T>>> + Send;
fn write_new(
self,
contents: impl AsRef<[u8]> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn write(
self,
contents: impl AsRef<[u8]> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn append(
self,
contents: impl AsRef<[u8]> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn copy(
self,
to: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn rename(
self,
to: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn remove_file(self) -> impl Future<Output = Result<Option<T>>> + Send;
fn remove_dir(self) -> impl Future<Output = Result<Option<T>>> + Send;
fn remove_dir_all(self) -> impl Future<Output = Result<Option<T>>> + Send;
fn hard_link(
self,
link: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn hard_link_atomic(
self,
link: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn symlink(
self,
link: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn symlink_atomic(
self,
link: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn symlink_absolute(
self,
link: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn symlink_absolute_atomic(
self,
link: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn symlink_relative(
self,
link: impl AsRef<Path> + Send + Sync,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn symlink_relative_atomic(
self,
link: impl AsRef<Path> + Send + Sync,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn set_permissions(
self,
perm: Permissions,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn set_permissions_readonly(
self,
readonly: bool,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn set_permissions_mode(
self,
mode: u32,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn add_permissions_mode(
self,
mode: u32,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn remove_permissions_mode(
self,
mode: u32,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn chown(
self,
uid: Option<u32>,
gid: Option<u32>,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn chown_nofollow(
self,
uid: Option<u32>,
gid: Option<u32>,
) -> impl Future<Output = Result<Option<T>>> + Send;
fn chroot(self) -> impl Future<Output = Result<Option<T>>> + Send;
}Available on crate feature
tokio only.Required Methods§
fn metadata_async(self) -> impl Future<Output = Result<Option<Metadata>>> + Send
fn symlink_metadata_async( self, ) -> impl Future<Output = Result<Option<Metadata>>> + Send
fn canonicalize_async( self, ) -> impl Future<Output = Result<Option<PathBuf>>> + Send
fn read_link_async(self) -> impl Future<Output = Result<Option<PathBuf>>> + Send
fn read_dir_async(self) -> impl Future<Output = Result<Option<ReadDir>>> + Send
fn try_exists_async(self) -> impl Future<Output = Result<Option<bool>>> + Send
fn try_is_file(self) -> impl Future<Output = Result<Option<bool>>> + Send
fn try_is_dir(self) -> impl Future<Output = Result<Option<bool>>> + Send
fn try_is_symlink(self) -> impl Future<Output = Result<Option<bool>>> + Send
fn try_exists_nofollow( self, ) -> impl Future<Output = Result<Option<bool>>> + Send
fn try_is_file_nofollow( self, ) -> impl Future<Output = Result<Option<bool>>> + Send
fn try_is_dir_nofollow( self, ) -> impl Future<Output = Result<Option<bool>>> + Send
fn try_is_read_link_broken( self, ) -> impl Future<Output = Result<Option<bool>>> + Send
fn try_is_read_dir_empty( self, ) -> impl Future<Output = Result<Option<bool>>> + Send
fn create_new(self) -> impl Future<Output = Result<Option<File>>> + Send
fn create(self) -> impl Future<Output = Result<Option<File>>> + Send
fn open(self) -> impl Future<Output = Result<Option<File>>> + Send
fn read(self) -> impl Future<Output = Result<Option<Vec<u8>>>> + Send
fn read_to_string(self) -> impl Future<Output = Result<Option<String>>> + Send
fn read_lines( self, ) -> impl Future<Output = Result<Option<Lines<BufReader<File>>>>> + Send
fn create_dir_all(self) -> impl Future<Output = Result<Option<T>>> + Send
fn create_dir(self) -> impl Future<Output = Result<Option<T>>> + Send
fn write_new( self, contents: impl AsRef<[u8]> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
fn write( self, contents: impl AsRef<[u8]> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
fn append( self, contents: impl AsRef<[u8]> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
fn copy( self, to: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
fn rename( self, to: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
fn remove_file(self) -> impl Future<Output = Result<Option<T>>> + Send
fn remove_dir(self) -> impl Future<Output = Result<Option<T>>> + Send
fn remove_dir_all(self) -> impl Future<Output = Result<Option<T>>> + Send
fn hard_link( self, link: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
fn hard_link_atomic( self, link: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
fn symlink( self, link: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn symlink_atomic( self, link: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn symlink_absolute( self, link: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn symlink_absolute_atomic( self, link: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn symlink_relative( self, link: impl AsRef<Path> + Send + Sync, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn symlink_relative_atomic( self, link: impl AsRef<Path> + Send + Sync, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn set_permissions( self, perm: Permissions, ) -> impl Future<Output = Result<Option<T>>> + Send
fn set_permissions_readonly( self, readonly: bool, ) -> impl Future<Output = Result<Option<T>>> + Send
fn set_permissions_mode( self, mode: u32, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn add_permissions_mode( self, mode: u32, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn remove_permissions_mode( self, mode: u32, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn chown( self, uid: Option<u32>, gid: Option<u32>, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn chown_nofollow( self, uid: Option<u32>, gid: Option<u32>, ) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix only.
fn chroot(self) -> impl Future<Output = Result<Option<T>>> + Send
Available on Unix and non-Fuchsia only.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".