pub trait OpenOptionsExt: Send {
// Required methods
fn open_if_not_exists(
&self,
path: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<File>>> + Send;
fn open_if_exists(
&self,
path: impl AsRef<Path> + Send,
) -> impl Future<Output = Result<Option<File>>> + Send;
}Available on crate feature
tokio only.Required Methods§
fn open_if_not_exists( &self, path: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<File>>> + Send
fn open_if_exists( &self, path: impl AsRef<Path> + Send, ) -> impl Future<Output = Result<Option<File>>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".