pub struct FileDescManagerEnv<O, S, A> { /* private fields */ }Expand description
An environment implementation which manages opening, storing, and performing async I/O operations on file descriptor handles.
Implementations§
Source§impl<O, S, A> FileDescManagerEnv<O, S, A>
impl<O, S, A> FileDescManagerEnv<O, S, A>
Trait Implementations§
Source§impl<O, S, A> AsyncIoEnvironment for FileDescManagerEnv<O, S, A>where
A: AsyncIoEnvironment,
impl<O, S, A> AsyncIoEnvironment for FileDescManagerEnv<O, S, A>where
A: AsyncIoEnvironment,
Source§type IoHandle = <A as AsyncIoEnvironment>::IoHandle
type IoHandle = <A as AsyncIoEnvironment>::IoHandle
The underlying handle (e.g.
FileDesc) with which to perform the async I/O.Source§fn read_all(
&mut self,
fd: Self::IoHandle,
) -> BoxFuture<'static, Result<Vec<u8>>>
fn read_all( &mut self, fd: Self::IoHandle, ) -> BoxFuture<'static, Result<Vec<u8>>>
Asynchronously read all data from the specified handle.
Source§impl<O: Clone, S: Clone, A: Clone> Clone for FileDescManagerEnv<O, S, A>
impl<O: Clone, S: Clone, A: Clone> Clone for FileDescManagerEnv<O, S, A>
Source§fn clone(&self) -> FileDescManagerEnv<O, S, A>
fn clone(&self) -> FileDescManagerEnv<O, S, A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<O: Default, S: Default, A: Default> Default for FileDescManagerEnv<O, S, A>
impl<O: Default, S: Default, A: Default> Default for FileDescManagerEnv<O, S, A>
Source§fn default() -> FileDescManagerEnv<O, S, A>
fn default() -> FileDescManagerEnv<O, S, A>
Returns the “default value” for a type. Read more
Source§impl<O, S, A> FileDescEnvironment for FileDescManagerEnv<O, S, A>where
S: FileDescEnvironment,
impl<O, S, A> FileDescEnvironment for FileDescManagerEnv<O, S, A>where
S: FileDescEnvironment,
Source§type FileHandle = <S as FileDescEnvironment>::FileHandle
type FileHandle = <S as FileDescEnvironment>::FileHandle
A file handle (or wrapper) to associate with shell file descriptors.
Source§fn file_desc(&self, fd: Fd) -> Option<(&Self::FileHandle, Permissions)>
fn file_desc(&self, fd: Fd) -> Option<(&Self::FileHandle, Permissions)>
Get the permissions and a handle associated with an opened file descriptor.
Source§fn set_file_desc(
&mut self,
fd: Fd,
handle: Self::FileHandle,
perms: Permissions,
)
fn set_file_desc( &mut self, fd: Fd, handle: Self::FileHandle, perms: Permissions, )
Associate a file descriptor with a given handle and permissions.
Source§fn close_file_desc(&mut self, fd: Fd)
fn close_file_desc(&mut self, fd: Fd)
Treat the specified file descriptor as closed for the current environment.
Source§impl<O, S, A> FileDescOpener for FileDescManagerEnv<O, S, A>
impl<O, S, A> FileDescOpener for FileDescManagerEnv<O, S, A>
Source§type OpenedFileHandle = <A as AsyncIoEnvironment>::IoHandle
type OpenedFileHandle = <A as AsyncIoEnvironment>::IoHandle
A type which represents an opened file descriptor.
Source§fn open_path(
&mut self,
path: &Path,
opts: &OpenOptions,
) -> Result<Self::OpenedFileHandle>
fn open_path( &mut self, path: &Path, opts: &OpenOptions, ) -> Result<Self::OpenedFileHandle>
Open a provided
path with the specified OpenOptions.Source§impl<O, S, A> SubEnvironment for FileDescManagerEnv<O, S, A>
impl<O, S, A> SubEnvironment for FileDescManagerEnv<O, S, A>
impl<O: Eq, S: Eq, A: Eq> Eq for FileDescManagerEnv<O, S, A>
impl<O, S, A> StructuralPartialEq for FileDescManagerEnv<O, S, A>
Auto Trait Implementations§
impl<O, S, A> Freeze for FileDescManagerEnv<O, S, A>
impl<O, S, A> RefUnwindSafe for FileDescManagerEnv<O, S, A>
impl<O, S, A> Send for FileDescManagerEnv<O, S, A>
impl<O, S, A> Sync for FileDescManagerEnv<O, S, A>
impl<O, S, A> Unpin for FileDescManagerEnv<O, S, A>
impl<O, S, A> UnwindSafe for FileDescManagerEnv<O, S, A>
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