Skip to main content

EMMCLogger

Struct EMMCLogger 

Source
pub struct EMMCLogger<BD: BlockDevice> { /* private fields */ }

Implementations§

Source§

impl<BD: BlockDevice> EMMCLogger<BD>

Source

pub fn new(bd: BD, start: BlockIdx, size: BlockCount) -> CuResult<Self>

Trait Implementations§

Source§

impl<BD: BlockDevice> Drop for EMMCLogger<BD>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<BD> UnifiedLogWrite<EMMCSectionStorage<BD>> for EMMCLogger<BD>
where BD: BlockDevice + Send + Sync + 'static,

Source§

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>>)

Flush the given section to the underlying storage.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> GetTypeRegistration for T

Source§

impl<T> Reflect for T
where T: 'static,

Source§

impl<T> ReflectTypePath for T