pub struct TableAccessor<'a, T: 'a> { /* private fields */ }Expand description
A safe RAII wrapper for accessing a CFE table’s memory.
It acquires the table pointer on creation and automatically releases it when dropped.
Implementations§
Source§impl<'a, T> TableAccessor<'a, T>
impl<'a, T> TableAccessor<'a, T>
Sourcepub fn new(handle: TableHandle) -> Result<Self>
pub fn new(handle: TableHandle) -> Result<Self>
Acquires a pointer to the table data.
Can block on shared single-buffered tables. The address must
be released (by dropping the accessor) before calling
Table::update or any blocking call (e.g. pending on SB).
Returns a zeroed table pointer if the table has never been loaded.
Trait Implementations§
Source§impl<'a, T: Debug + 'a> Debug for TableAccessor<'a, T>
impl<'a, T: Debug + 'a> Debug for TableAccessor<'a, T>
Source§impl<'a, T> Deref for TableAccessor<'a, T>
impl<'a, T> Deref for TableAccessor<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for TableAccessor<'a, T>
impl<'a, T> RefUnwindSafe for TableAccessor<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for TableAccessor<'a, T>
impl<'a, T> !Sync for TableAccessor<'a, T>
impl<'a, T> Unpin for TableAccessor<'a, T>
impl<'a, T> UnsafeUnpin for TableAccessor<'a, T>
impl<'a, T> UnwindSafe for TableAccessor<'a, T>where
T: RefUnwindSafe,
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