axfs::fops

Trait MyFileSystemIf

Source
pub trait MyFileSystemIf {
    // Required method
    fn new_myfs(disk: Disk) -> Arc<dyn VfsOps>;
}
Available on crate feature myfs only.
Expand description

The interface to define custom filesystems in user apps.

Required Methods§

Source

fn new_myfs(disk: Disk) -> Arc<dyn VfsOps>

Creates a new instance of the filesystem with initialization.

TODO: use generic disk type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§