Struct fs_tracing::OpenOptions[][src]

pub struct OpenOptions { /* fields omitted */ }

Wrapper for fs::OpenOptions.

Implementations

impl OpenOptions[src]

pub fn new() -> Self[src]

Wrapper for OpenOptions::new.

pub fn read(&mut self, read: bool) -> &mut Self[src]

Wrapper for OpenOptions::read.

pub fn write(&mut self, write: bool) -> &mut Self[src]

Wrapper for OpenOptions::write.

pub fn append(&mut self, append: bool) -> &mut Self[src]

Wrapper for OpenOptions::append.

pub fn truncate(&mut self, truncate: bool) -> &mut Self[src]

Wrapper for OpenOptions::truncate.

pub fn create(&mut self, create: bool) -> &mut Self[src]

Wrapper for OpenOptions::create.

pub fn create_new(&mut self, create_new: bool) -> &mut Self[src]

pub fn open<P: AsRef<Path>>(&self, path: P) -> Result<File>[src]

Wrapper for OpenOptions::open.

Trait Implementations

impl Clone for OpenOptions[src]

impl Debug for OpenOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.