Struct fs_tracing::File[][src]

pub struct File { /* fields omitted */ }

Wrapper for fs::File.

Implementations

impl File[src]

pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>[src]

Wrapper for File::open.

pub fn create<P: AsRef<Path>>(path: P) -> Result<Self>[src]

Wrapper for File::create.

pub fn sync_all(&self) -> Result<()>[src]

Wrapper for File::sync_all.

pub fn sync_data(&self) -> Result<()>[src]

Wrapper for File::sync_data.

pub fn set_len(&self, size: u64) -> Result<()>[src]

Wrapper for File::set_len,

pub fn metadata(&self) -> Result<Metadata>[src]

Wrapper for File::metadata.

pub fn try_clone(&self) -> Result<File>[src]

Wrapper for File::try_clone.

pub fn set_permissions(&self, perm: Permissions) -> Result<()>[src]

Wrapper for File::set_permissions.

Trait Implementations

impl Debug for File[src]

impl Read for File[src]

impl Read for &File[src]

impl Seek for File[src]

impl Seek for &File[src]

impl Write for File[src]

impl Write for &File[src]

Auto Trait Implementations

impl RefUnwindSafe for File

impl Send for File

impl Sync for File

impl Unpin for File

impl UnwindSafe for File

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, 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.