usecrate::errors::{Error, ErrorKind}; usecrate::tokio::File; use std::io; use std::path::Path; use tokio::fs::OpenOptions as TokioOpenOptions;
/// Options and flags which can be used to configure how a file is opened. /// /// This is a wrapper around [`tokio::fs::OpenOptions`]. #[derive(Clone, Debug, Default)] #[cfg_attr(docsrs, doc(cfg(feature = "tokio")))] pubstruct OpenOptions {
tokio: TokioOpenOptions,
}
impl OpenOptions { /// Creates a blank new set of options ready for configuration. /// /// All options are initially set to `false`. /// /// This is a wrapped version of [`tokio::fs::OpenOptions::new`] /// /// # Examples /// /// ```no_run /// use fs_err::tokio::OpenOptions; /// /// let mut options = OpenOptions::new(); /// let future = options.read(true).open("foo.txt"); /// ``` pub fn new() -> OpenOptions {
OpenOptions {
tokio: TokioOpenOptions::new(),
}
}
impl From<TokioOpenOptions> for OpenOptions {
fn from(tokio: TokioOpenOptions) -> Self {
OpenOptions { tokio }
}
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.7Bemerkung:
(vorverarbeitet am 2026-10-12)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.