Struct kernel::file::File[][src]

pub struct File { /* fields omitted */ }
Expand description

Wraps the kernel’s struct file.

Invariants

The pointer File::ptr is non-null and valid. Its reference count is also non-zero.

Implementations

Constructs a new [struct file] wrapper from a file descriptor.

The file descriptor belongs to the current process.

Returns the current seek/cursor/pointer position (struct file::f_pos).

Returns whether the file is in blocking mode.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.