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
- native
native
Native async runtime - test_suite
test_suite
mfio-rt test suite. - virt
virt
Virtual Runtime
Macros
- net_test_suite
test_suite
Builds network test suite. - test_suite
test_suite
Builds filesystem test suite. - test_suite_base
test_suite
Builds filesystem test suite.
Structs
- Directory list entry.
- Directory list entry metadata.
- File open options.
- A slice of a path (akin to
str
). - An owned, mutable path (akin to
String
). - Directory list entry permission.
Enums
- A single component of a path.
- List of operations that can be done on a filesystem.
- Directory list entry type.
- Network stream shutdown options.
Traits
- Represents a location in filesystem operations are performed from.
- Helpers for running directory operations more ergonomically.
- Supertrait for file handles.
- Primary filesystem trait.
- Supertrait for stream handles.
- Tcp
std
Describes TCP capable runtime operations. - Describes operations performable on a TCP listener.
- Describes operations performable on a TCP connection.