Struct conch_runtime::io::FileDesc [] [src]

pub struct FileDesc(_);

A wrapper around an owned OS file primitive. The wrapper allows reading from or writing to the OS file primitive, and will close it once it goes out of scope.

Methods

impl FileDesc
[src]

[src]

Takes ownership of and wraps an OS file primitive.

[src]

Duplicates the underlying OS file primitive.

Trait Implementations

impl Debug for FileDesc
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for FileDesc
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for FileDesc
[src]

impl Into<Stdio> for FileDesc
[src]

[src]

Performs the conversion.

impl Read for FileDesc
[src]

[src]

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more

[src]

🔬 This is a nightly-only experimental API. (read_initializer)

Determines if this Reader can work with buffers of uninitialized memory. Read more

1.0.0
[src]

Read all bytes until EOF in this source, placing them into buf. Read more

1.0.0
[src]

Read all bytes until EOF in this source, placing them into buf. Read more

1.6.0
[src]

Read the exact number of bytes required to fill buf. Read more

1.0.0
[src]

Creates a "by reference" adaptor for this instance of Read. Read more

1.0.0
[src]

Transforms this Read instance to an [Iterator] over its bytes. Read more

[src]

🔬 This is a nightly-only experimental API. (io)

the semantics of a partial read/write of where errors happen is currently unclear and may change

Transforms this Read instance to an [Iterator] over [char]s. Read more

1.0.0
[src]

Creates an adaptor which will chain this stream with another. Read more

1.0.0
[src]

Creates an adaptor which will read at most limit bytes from it. Read more

impl<'a> Read for &'a FileDesc
[src]

[src]

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more

[src]

🔬 This is a nightly-only experimental API. (read_initializer)

Determines if this Reader can work with buffers of uninitialized memory. Read more

1.0.0
[src]

Read all bytes until EOF in this source, placing them into buf. Read more

1.0.0
[src]

Read all bytes until EOF in this source, placing them into buf. Read more

1.6.0
[src]

Read the exact number of bytes required to fill buf. Read more

1.0.0
[src]

Creates a "by reference" adaptor for this instance of Read. Read more

1.0.0
[src]

Transforms this Read instance to an [Iterator] over its bytes. Read more

[src]

🔬 This is a nightly-only experimental API. (io)

the semantics of a partial read/write of where errors happen is currently unclear and may change

Transforms this Read instance to an [Iterator] over [char]s. Read more

1.0.0
[src]

Creates an adaptor which will chain this stream with another. Read more

1.0.0
[src]

Creates an adaptor which will read at most limit bytes from it. Read more

impl Write for FileDesc
[src]

[src]

Write a buffer into this object, returning how many bytes were written. Read more

[src]

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

1.0.0
[src]

Attempts to write an entire buffer into this write. Read more

1.0.0
[src]

Writes a formatted string into this writer, returning any error encountered. Read more

1.0.0
[src]

Creates a "by reference" adaptor for this instance of Write. Read more

impl<'a> Write for &'a FileDesc
[src]

[src]

Write a buffer into this object, returning how many bytes were written. Read more

[src]

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

1.0.0
[src]

Attempts to write an entire buffer into this write. Read more

1.0.0
[src]

Writes a formatted string into this writer, returning any error encountered. Read more

1.0.0
[src]

Creates a "by reference" adaptor for this instance of Write. Read more

impl Seek for FileDesc
[src]

[src]

Seek to an offset, in bytes, in a stream. Read more

impl<'a> Seek for &'a FileDesc
[src]

[src]

Seek to an offset, in bytes, in a stream. Read more

impl FileDescExt for FileDesc
[src]

[src]

Registers the underlying primitive OS handle with a tokio event loop. Read more

[src]

Sets the O_NONBLOCK flag on the descriptor to the desired state. Read more

impl FromRawFd for FileDesc
[src]

[src]

Constructs a new instance of Self from the given raw file descriptor. Read more

impl AsRawFd for FileDesc
[src]

[src]

Extracts the raw file descriptor. Read more

impl IntoRawFd for FileDesc
[src]

[src]

Consumes this object, returning the raw underlying file descriptor. Read more

impl From<File> for FileDesc
[src]

[src]

Performs the conversion.