Crate mfio_rt

Source
Expand description

§mfio-rt

§mfio Backed Runtime

This crate aims to provide building blocks for mfio backed asynchronous runtimes. The traits have the option to not rely on the standard library. This makes the system great for no_std embedded environments or kernel-side code.

native feature (depends on std) enables native implementations of the runtime through NativeRt structure.

virt feature enables a virtual in-memory runtime through VirtRt structure.

Custom runtimes may be implemented by implementing IoBackend, and any of the runtime traits, such as Fs or Tcp.

§no_std

Currently, only Fs is exposed in no_std environments. Tcp depends on structures, such as SocketAddr that are currently not available in core. This will change once ip_in_core is stabilized.

Re-exports§

pub use native::NativeFile;
pub use native::NativeRt;
pub use native::NativeRtBuilder;

Modules§

nativenative
Native async runtime
test_suitetest_suite
mfio-rt test suite.
virtvirt
Virtual Runtime

Macros§

net_test_suitetest_suite
Builds network test suite.
test_suitetest_suite
Builds filesystem test suite.
test_suite_basetest_suite
Builds filesystem test suite.

Structs§

DirEntry
Directory list entry.
Metadata
Directory list entry metadata.
OpenOptions
File open options.
Path
A slice of a path (akin to str).
PathBuf
An owned, mutable path (akin to String).
Permissions
Directory list entry permission.

Enums§

Component
A single component of a path.
DirOp
List of operations that can be done on a filesystem.
FileType
Directory list entry type.
Shutdown
Network stream shutdown options.

Traits§

DirHandle
Represents a location in filesystem operations are performed from.
DirHandleExt
Helpers for running directory operations more ergonomically.
FileHandle
Supertrait for file handles.
Fs
Primary filesystem trait.
StreamHandle
Supertrait for stream handles.
Tcpstd
Describes TCP capable runtime operations.
TcpListenerHandlestd
Describes operations performable on a TCP listener.
TcpStreamHandlestd
Describes operations performable on a TCP connection.