We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de5b831 commit e4deb4aCopy full SHA for e4deb4a
1 file changed
src/lib.rs
@@ -358,6 +358,17 @@ impl Shmem {
358
pub fn get_os_id(&self) -> &str {
359
self.mapping.unique_id.as_str()
360
}
361
+
362
+ /// Returns the tmpfs path if present
363
+ #[cfg(not(target_os = "windows"))]
364
+ pub fn get_tmpfs_file_path(&self) -> Option<PathBuf> {
365
+ if self.config.use_tmpfs {
366
+ self.config.get_tmpfs_file_path().ok()
367
+ } else {
368
+ None
369
+ }
370
371
372
/// Returns the flink path if present
373
pub fn get_flink_path(&self) -> Option<&PathBuf> {
374
self.config.flink_path.as_ref()
0 commit comments