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§
- DirEntry
- Directory list entry.
- Metadata
- Directory list entry metadata.
- Open
Options - 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.
- File
Type - Directory list entry type.
- Shutdown
- Network stream shutdown options.
Traits§
- DirHandle
- Represents a location in filesystem operations are performed from.
- DirHandle
Ext - Helpers for running directory operations more ergonomically.
- File
Handle - Supertrait for file handles.
- Fs
- Primary filesystem trait.
- Stream
Handle - Supertrait for stream handles.
- Tcp
std
- Describes TCP capable runtime operations.
- TcpListener
Handle std
- Describes operations performable on a TCP listener.
- TcpStream
Handle std
- Describes operations performable on a TCP connection.