Skip to main content

MemoryManagerRangeAuthorityError

Enum MemoryManagerRangeAuthorityError 

Source
pub enum MemoryManagerRangeAuthorityError {
    Range(MemoryManagerRangeError),
    Slot(MemoryManagerSlotError),
    OverlappingRanges {
        existing_start: u8,
        existing_end: u8,
        candidate_start: u8,
        candidate_end: u8,
    },
    InvalidDiagnosticString {
        field: &'static str,
        reason: &'static str,
    },
    UnclaimedId {
        id: u8,
    },
    AuthorityMismatch {
        id: u8,
        expected_authority: String,
        actual_authority: String,
    },
    ModeMismatch {
        id: u8,
        authority: String,
        expected_mode: MemoryManagerRangeMode,
        actual_mode: MemoryManagerRangeMode,
    },
    MissingCoverage {
        start: u8,
        end: u8,
    },
    RangeOutsideCoverageTarget {
        start: u8,
        end: u8,
        target_start: u8,
        target_end: u8,
    },
}
Expand description

MemoryManagerRangeAuthorityError

Invalid MemoryManager range authority policy.

Variants§

§

Range(MemoryManagerRangeError)

Authority range bounds are invalid.

§

Slot(MemoryManagerSlotError)

Slot descriptor is not a usable MemoryManager ID slot.

§

OverlappingRanges

Authority range overlaps an existing range.

Fields

§existing_start: u8

Existing range start.

§existing_end: u8

Existing range end.

§candidate_start: u8

Candidate range start.

§candidate_end: u8

Candidate range end.

§

InvalidDiagnosticString

Authority or purpose text failed diagnostic string validation.

Fields

§field: &'static str

Diagnostic field name.

§reason: &'static str

Validation failure.

§

UnclaimedId

No authority range covers the requested ID.

Fields

§id: u8

Unclaimed MemoryManager ID.

§

AuthorityMismatch

Slot is governed by a different authority.

Fields

§id: u8

MemoryManager ID.

§expected_authority: String

Expected authority identifier.

§actual_authority: String

Actual authority identifier.

§

ModeMismatch

Slot is governed by the expected authority with a different mode.

Fields

§id: u8

MemoryManager ID.

§authority: String

Authority identifier.

§expected_mode: MemoryManagerRangeMode

Expected authority mode.

§actual_mode: MemoryManagerRangeMode

Actual authority mode.

§

MissingCoverage

A complete coverage target has no authority records for part of it.

Fields

§start: u8

First missing ID.

§end: u8

Last missing ID.

§

RangeOutsideCoverageTarget

An authority record lies outside the complete coverage target.

Fields

§start: u8

Authority range start.

§end: u8

Authority range end.

§target_start: u8

Coverage target start.

§target_end: u8

Coverage target end.

Trait Implementations§

Source§

impl Clone for MemoryManagerRangeAuthorityError

Source§

fn clone(&self) -> MemoryManagerRangeAuthorityError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MemoryManagerRangeAuthorityError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for MemoryManagerRangeAuthorityError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for MemoryManagerRangeAuthorityError

Source§

impl Error for MemoryManagerRangeAuthorityError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<MemoryManagerRangeAuthorityError> for StaticMemoryDeclarationError

Source§

fn from(source: MemoryManagerRangeAuthorityError) -> Self

Converts to this type from the input type.
Source§

impl<P> From<MemoryManagerRangeAuthorityError> for RuntimeBootstrapError<P>

Source§

fn from(source: MemoryManagerRangeAuthorityError) -> Self

Converts to this type from the input type.
Source§

impl<P> From<MemoryManagerRangeAuthorityError> for RuntimePolicyError<P>

Source§

fn from(source: MemoryManagerRangeAuthorityError) -> Self

Converts to this type from the input type.
Source§

impl From<MemoryManagerRangeError> for MemoryManagerRangeAuthorityError

Source§

fn from(source: MemoryManagerRangeError) -> Self

Converts to this type from the input type.
Source§

impl From<MemoryManagerSlotError> for MemoryManagerRangeAuthorityError

Source§

fn from(source: MemoryManagerSlotError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for MemoryManagerRangeAuthorityError

Source§

fn eq(&self, other: &MemoryManagerRangeAuthorityError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for MemoryManagerRangeAuthorityError

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.