pub struct MmapFileConfig {
pub path: PathBuf,
pub buffer_size: usize,
pub element_size: usize,
pub create: bool,
}Expand description
Configuration for file-backed mmap segments.
Fields§
§path: PathBufPath to the backing file used for the shared mapping.
buffer_size: usizeSize of the ring buffer (must be power of 2).
element_size: usizeElement size in bytes.
create: boolWhether to create the backing file or attach to an existing one.
Trait Implementations§
Source§impl Clone for MmapFileConfig
impl Clone for MmapFileConfig
Source§fn clone(&self) -> MmapFileConfig
fn clone(&self) -> MmapFileConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MmapFileConfig
impl Debug for MmapFileConfig
Auto Trait Implementations§
impl Freeze for MmapFileConfig
impl RefUnwindSafe for MmapFileConfig
impl Send for MmapFileConfig
impl Sync for MmapFileConfig
impl Unpin for MmapFileConfig
impl UnsafeUnpin for MmapFileConfig
impl UnwindSafe for MmapFileConfig
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