pub enum LayoutError {
Show 32 variants
Overflow,
AllocationFailed,
ZeroGeneration,
EmptyRegionSet,
DuplicateRole(RoleId),
LimitExceeded,
EmptySlots,
MappingTooSmall {
required: u64,
actual: u64,
},
BadMagic,
BadVersion {
major: u16,
minor: u16,
},
BadHeaderSize(u32),
SchemaMismatch,
StaleGeneration {
expected: u64,
actual: u64,
},
UnexpectedRole {
expected: RoleId,
actual: u32,
},
UnexpectedWriter,
ReservedFieldSet,
BadTotalSize,
BadAcknowledgementLayout,
AcknowledgementNotZero,
BadSlotLayout,
SlotMetadataNotInitialized,
BadSlotStride,
RangeOutOfBounds,
SlotOutOfBounds {
slot: u32,
count: u32,
},
AcknowledgementOutOfBounds {
index: u32,
count: u32,
},
PayloadOutOfBounds {
length: u32,
capacity: u32,
},
CapabilityPaddingNotZero,
InvalidAcknowledgementRoute,
DuplicateAcknowledgementRoute,
IncompleteAcknowledgementRoutes,
RouteRegionMismatch,
TopologyMismatch,
}Expand description
Bounded region layout validation failures.
Variants§
Overflow
Checked arithmetic overflowed.
AllocationFailed
Allocation of owned layout metadata failed.
ZeroGeneration
Generation zero is reserved.
EmptyRegionSet
No independent regions were configured.
DuplicateRole(RoleId)
A numeric role appeared more than once.
LimitExceeded
Slot, payload, acknowledgement, or total-size limit was exceeded.
EmptySlots
Region has no slots or zero-capacity slots.
MappingTooSmall
Mapping cannot contain the declared region.
BadMagic
Region signature is invalid.
BadVersion
Region wire revision is unsupported.
BadHeaderSize(u32)
Encoded header size is noncanonical.
SchemaMismatch
Schema identity differs.
StaleGeneration
Generation differs.
UnexpectedRole
Role differs.
UnexpectedWriter
Writer endpoint differs or is invalid.
ReservedFieldSet
Reserved bytes or flags are nonzero.
BadTotalSize
Total size is invalid.
BadAcknowledgementLayout
Acknowledgement layout is invalid.
AcknowledgementNotZero
Acknowledgement storage was not zero before transfer.
BadSlotLayout
Slot layout is invalid.
SlotMetadataNotInitialized
Quiescent slot generation or unpublished metadata is invalid.
BadSlotStride
Slot stride is invalid.
RangeOutOfBounds
A checked range escapes the mapping.
SlotOutOfBounds
Slot index is outside the negotiated count.
AcknowledgementOutOfBounds
Acknowledgement index is outside the negotiated count.
PayloadOutOfBounds
Payload length exceeds its validated fixed-capacity slot.
CapabilityPaddingNotZero
Page-rounded capability padding was not zero before transfer.
InvalidAcknowledgementRoute
A route names a missing role, same-direction owner, or out-of-range index.
DuplicateAcknowledgementRoute
More than one route names a target slot or owner cell.
IncompleteAcknowledgementRoutes
A producer slot or acknowledgement cell has no exact route.
RouteRegionMismatch
A validated route was applied to a different region.
TopologyMismatch
Validated bytes do not belong to the supplied composed topology.
Trait Implementations§
Source§impl Clone for LayoutError
impl Clone for LayoutError
Source§fn clone(&self) -> LayoutError
fn clone(&self) -> LayoutError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LayoutError
Source§impl Debug for LayoutError
impl Debug for LayoutError
Source§impl Display for LayoutError
impl Display for LayoutError
impl Eq for LayoutError
Source§impl Error for LayoutError
Available on crate feature std only.
impl Error for LayoutError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()