pub struct MmapSectionStorage { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl SectionStorage for MmapSectionStorage
impl SectionStorage for MmapSectionStorage
Source§fn initialize<E: Encode>(&mut self, header: &E) -> Result<usize, EncodeError>
fn initialize<E: Encode>(&mut self, header: &E) -> Result<usize, EncodeError>
This rewinds the storage, serialize the header and jumps to the beginning of the user data storage.
Source§fn post_update_header<E: Encode>(
&mut self,
header: &E,
) -> Result<usize, EncodeError>
fn post_update_header<E: Encode>( &mut self, header: &E, ) -> Result<usize, EncodeError>
This updates the header leaving the position to the end of the user data storage.
Source§impl UnifiedLogWrite<MmapSectionStorage> for MmapUnifiedLoggerWrite
impl UnifiedLogWrite<MmapSectionStorage> for MmapUnifiedLoggerWrite
Source§fn add_section(
&mut self,
entry_type: UnifiedLogType,
requested_section_size: usize,
) -> CuResult<SectionHandle<MmapSectionStorage>>
fn add_section( &mut self, entry_type: UnifiedLogType, requested_section_size: usize, ) -> CuResult<SectionHandle<MmapSectionStorage>>
The returned slice is section_size or greater.
Source§fn flush_section(&mut self, section: &mut SectionHandle<MmapSectionStorage>)
fn flush_section(&mut self, section: &mut SectionHandle<MmapSectionStorage>)
Flush the given section to the underlying storage.
Source§fn status(&self) -> UnifiedLogStatus
fn status(&self) -> UnifiedLogStatus
Returns the current status of the unified logger.
Auto Trait Implementations§
impl Freeze for MmapSectionStorage
impl RefUnwindSafe for MmapSectionStorage
impl Send for MmapSectionStorage
impl Sync for MmapSectionStorage
impl Unpin for MmapSectionStorage
impl !UnwindSafe for MmapSectionStorage
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