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
InvalidDiagnosticString
Authority or purpose text failed diagnostic string validation.
UnclaimedId
No authority range covers the requested ID.
AuthorityMismatch
Slot is governed by a different authority.
ModeMismatch
Slot is governed by the expected authority with a different mode.
Fields
Authority identifier.
§
expected_mode: MemoryManagerRangeModeExpected authority mode.
§
actual_mode: MemoryManagerRangeModeActual authority mode.
MissingCoverage
A complete coverage target has no authority records for part of it.
RangeOutsideCoverageTarget
An authority record lies outside the complete coverage target.
Trait Implementations§
Source§impl Clone for MemoryManagerRangeAuthorityError
impl Clone for MemoryManagerRangeAuthorityError
Source§fn clone(&self) -> MemoryManagerRangeAuthorityError
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Error for MemoryManagerRangeAuthorityError
impl Error for MemoryManagerRangeAuthorityError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<P> From<MemoryManagerRangeAuthorityError> for RuntimeBootstrapError<P>
impl<P> From<MemoryManagerRangeAuthorityError> for RuntimeBootstrapError<P>
Source§fn from(source: MemoryManagerRangeAuthorityError) -> Self
fn from(source: MemoryManagerRangeAuthorityError) -> Self
Converts to this type from the input type.
Source§impl<P> From<MemoryManagerRangeAuthorityError> for RuntimePolicyError<P>
impl<P> From<MemoryManagerRangeAuthorityError> for RuntimePolicyError<P>
Source§fn from(source: MemoryManagerRangeAuthorityError) -> Self
fn from(source: MemoryManagerRangeAuthorityError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryManagerRangeAuthorityError> for StaticMemoryDeclarationError
impl From<MemoryManagerRangeAuthorityError> for StaticMemoryDeclarationError
Source§fn from(source: MemoryManagerRangeAuthorityError) -> Self
fn from(source: MemoryManagerRangeAuthorityError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryManagerRangeError> for MemoryManagerRangeAuthorityError
impl From<MemoryManagerRangeError> for MemoryManagerRangeAuthorityError
Source§fn from(source: MemoryManagerRangeError) -> Self
fn from(source: MemoryManagerRangeError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryManagerSlotError> for MemoryManagerRangeAuthorityError
impl From<MemoryManagerSlotError> for MemoryManagerRangeAuthorityError
Source§fn from(source: MemoryManagerSlotError) -> Self
fn from(source: MemoryManagerSlotError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryManagerRangeAuthorityError
impl PartialEq for MemoryManagerRangeAuthorityError
Source§fn eq(&self, other: &MemoryManagerRangeAuthorityError) -> bool
fn eq(&self, other: &MemoryManagerRangeAuthorityError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MemoryManagerRangeAuthorityError
impl StructuralPartialEq for MemoryManagerRangeAuthorityError
Auto Trait Implementations§
impl Freeze for MemoryManagerRangeAuthorityError
impl RefUnwindSafe for MemoryManagerRangeAuthorityError
impl Send for MemoryManagerRangeAuthorityError
impl Sync for MemoryManagerRangeAuthorityError
impl Unpin for MemoryManagerRangeAuthorityError
impl UnsafeUnpin for MemoryManagerRangeAuthorityError
impl UnwindSafe for MemoryManagerRangeAuthorityError
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