Struct aral_runtime_async_std::fs::OpenOptions
source · pub struct OpenOptions(/* private fields */);
Implementations§
source§impl OpenOptions
impl OpenOptions
pub fn append(&mut self, append: bool) -> &mut OpenOptions
pub fn create(&mut self, create: bool) -> &mut OpenOptions
pub fn create_new(&mut self, create_new: bool) -> &mut OpenOptions
pub fn new() -> OpenOptions
pub async fn open(&self, path: impl AsRef<Path>) -> Result<File>
pub fn read(&mut self, read: bool) -> &mut OpenOptions
pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions
pub fn write(&mut self, write: bool) -> &mut OpenOptions
Trait Implementations§
source§impl Default for OpenOptions
impl Default for OpenOptions
source§fn default() -> OpenOptions
fn default() -> OpenOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
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