pub struct DiagnosticInfo {
pub alloc_id: AllocId,
pub span: Span,
pub transition_range: Range<u64>,
pub access_range: Option<AllocRange>,
pub access_cause: AccessCause,
}Expand description
Diagnostics data about the current access and the location we are accessing. Used to create history events and errors.
Fields§
§alloc_id: AllocId§span: Span§transition_range: Range<u64>The range the diagnostic actually applies to.
This is always a subset of access_range.
access_range: Option<AllocRange>The range the access is happening to. Is None if this is the protector release access
access_cause: AccessCauseImplementations§
Source§impl DiagnosticInfo
impl DiagnosticInfo
Sourcepub fn create_event(
&self,
transition: PermTransition,
is_foreign: bool,
) -> Event
pub fn create_event( &self, transition: PermTransition, is_foreign: bool, ) -> Event
Creates a history event.
Trait Implementations§
Source§impl Clone for DiagnosticInfo
impl Clone for DiagnosticInfo
Source§fn clone(&self) -> DiagnosticInfo
fn clone(&self) -> DiagnosticInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiagnosticInfo
impl RefUnwindSafe for DiagnosticInfo
impl Send for DiagnosticInfo
impl Sync for DiagnosticInfo
impl Unpin for DiagnosticInfo
impl UnwindSafe for DiagnosticInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes