pub struct VmmPluginFileList<'a> { /* private fields */ }
Expand description
Plugin File List: Supplied by MemProcFS to plugin list callback function.
The VmmPluginFileList
struct contains the methods add_file()
and
add_directory()
which will allow the plugin list callback function
to populate files & directories given the specified path and process.
§Created By
plugin sub-system
Implementations§
Source§impl VmmPluginFileList<'_>
impl VmmPluginFileList<'_>
Sourcepub fn add_file(&self, name: &str, size: u64)
pub fn add_file(&self, name: &str, size: u64)
Add a file to the plugin directory indicated by path and process.
For additional information check the plugin_list_cb()
function in the
plugin example project.
§Examples
// Add a directory named readme.txt with size 4kB to the plugin path.
file_list.impl_add_file("readme.txt", 4096);
Sourcepub fn add_directory(&self, name: &str)
pub fn add_directory(&self, name: &str)
Add a directory to the plugin directory indicated by path and process.
For additional information check the plugin_list_cb()
function in the
plugin example project.
§Examples
// Add a directory named subdir33 to the plugin path.
file_list.add_directory("subdir33");
Trait Implementations§
Source§impl<'a> Debug for VmmPluginFileList<'a>
impl<'a> Debug for VmmPluginFileList<'a>
Auto Trait Implementations§
impl<'a> Freeze for VmmPluginFileList<'a>
impl<'a> RefUnwindSafe for VmmPluginFileList<'a>
impl<'a> Send for VmmPluginFileList<'a>
impl<'a> Sync for VmmPluginFileList<'a>
impl<'a> Unpin for VmmPluginFileList<'a>
impl<'a> UnwindSafe for VmmPluginFileList<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more