pub struct EMMCLogger<BD: BlockDevice> { /* private fields */ }Implementations§
Source§impl<BD: BlockDevice> EMMCLogger<BD>
impl<BD: BlockDevice> EMMCLogger<BD>
pub fn new(bd: BD, start: BlockIdx, size: BlockCount) -> CuResult<Self>
Trait Implementations§
Source§impl<BD: BlockDevice> Drop for EMMCLogger<BD>
impl<BD: BlockDevice> Drop for EMMCLogger<BD>
Source§impl<BD> UnifiedLogWrite<EMMCSectionStorage<BD>> for EMMCLogger<BD>
impl<BD> UnifiedLogWrite<EMMCSectionStorage<BD>> for EMMCLogger<BD>
Source§fn add_section(
&mut self,
entry_type: UnifiedLogType,
requested_section_size: usize,
) -> CuResult<SectionHandle<EMMCSectionStorage<BD>>>
fn add_section( &mut self, entry_type: UnifiedLogType, requested_section_size: usize, ) -> CuResult<SectionHandle<EMMCSectionStorage<BD>>>
A section is a contiguous chunk of memory that can be used to write data.
It can store various types of data as specified by the entry_type.
The requested_section_size is the size of the section to allocate.
It returns a handle to the section that can be used to write data until
it is flushed with flush_section, it is then considered unmutable.
Source§fn flush_section(&mut self, section: &mut SectionHandle<EMMCSectionStorage<BD>>)
fn flush_section(&mut self, section: &mut SectionHandle<EMMCSectionStorage<BD>>)
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<BD> Freeze for EMMCLogger<BD>
impl<BD> !RefUnwindSafe for EMMCLogger<BD>
impl<BD> Send for EMMCLogger<BD>where
BD: Send,
impl<BD> Sync for EMMCLogger<BD>where
BD: Send,
impl<BD> Unpin for EMMCLogger<BD>
impl<BD> UnsafeUnpin for EMMCLogger<BD>
impl<BD> !UnwindSafe for EMMCLogger<BD>
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