pub struct ResourcesTableReader { /* private fields */ }Expand description
Mediates read access to a VMO written by ResourcesTableWriter.
Implementations§
Source§impl ResourcesTableReader
impl ResourcesTableReader
Sourcepub unsafe fn new(vmo: &Vmo) -> Result<ResourcesTableReader, Error>
pub unsafe fn new(vmo: &Vmo) -> Result<ResourcesTableReader, Error>
§Safety
The caller must guarantee that data in the vmo is not concurrently written by others.
Only using ResourceKeys received from the corresponding ResourcesTableWriter satisfies
this requirement.
Sourcepub fn get_compressed_stack_trace(
&self,
resource_key: ResourceKey,
) -> Result<&[u8], Error>
pub fn get_compressed_stack_trace( &self, resource_key: ResourceKey, ) -> Result<&[u8], Error>
Gets the compressed stack trace identified by resource_key.
Sourcepub fn get_thread_info(
&self,
resource_key: ResourceKey,
) -> Result<&ThreadInfo, Error>
pub fn get_thread_info( &self, resource_key: ResourceKey, ) -> Result<&ThreadInfo, Error>
Gets the thread info entry identified by resource_key.
Auto Trait Implementations§
impl Freeze for ResourcesTableReader
impl RefUnwindSafe for ResourcesTableReader
impl Send for ResourcesTableReader
impl Sync for ResourcesTableReader
impl Unpin for ResourcesTableReader
impl UnsafeUnpin for ResourcesTableReader
impl UnwindSafe for ResourcesTableReader
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