Trait conch_runtime::env::FileDescEnvironment [] [src]

pub trait FileDescEnvironment {
    type FileHandle;
    fn file_desc(&self, fd: Fd) -> Option<(&Self::FileHandle, Permissions)>;
fn set_file_desc(
        &mut self,
        fd: Fd,
        handle: Self::FileHandle,
        perms: Permissions
    );
fn close_file_desc(&mut self, fd: Fd); }

An interface for setting and getting shell file descriptors.

Associated Types

A file handle (or wrapper) to associate with shell file descriptors.

Required Methods

Get the permissions and a handle associated with an opened file descriptor.

Associate a file descriptor with a given handle and permissions.

Treat the specified file descriptor as closed for the current environment.

Implementations on Foreign Types

impl<'a, T: ?Sized + FileDescEnvironment> FileDescEnvironment for &'a mut T
[src]

[src]

[src]

[src]

Implementors