pub enum BindingError {
MappingSizeMismatch {
expected: usize,
actual: usize,
},
MisalignedRecord,
Layout(LayoutError),
Slot(SlotError),
AllocationFailed,
PayloadLengthOverflow,
TopologyMismatch,
MissingRoute {
target: RoleId,
slot: u32,
},
}Expand description
Failure to bind a validated layout to its native mapping witness.
Variants§
MappingSizeMismatch
Native capability size differs from the validated range.
Fields
MisalignedRecord
Checked record address is not aligned for its atomic representation.
Layout(LayoutError)
Validated layout rejected the selected route or index.
Slot(SlotError)
Shared metadata no longer matches its validated generation.
AllocationFailed
Owned payload snapshot allocation failed.
PayloadLengthOverflow
Caller payload length cannot be represented by the fixed protocol field.
TopologyMismatch
Validated mapping does not belong to the supplied composed topology.
MissingRoute
Composed topology has no exact route for the requested target slot.
Trait Implementations§
Source§impl Clone for BindingError
impl Clone for BindingError
Source§fn clone(&self) -> BindingError
fn clone(&self) -> BindingError
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 moreimpl Copy for BindingError
Source§impl Debug for BindingError
impl Debug for BindingError
Source§impl Display for BindingError
impl Display for BindingError
impl Eq for BindingError
Source§impl Error for BindingError
Available on crate feature std only.
impl Error for BindingError
Available on crate feature
std only.1.30.0 · 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 From<LayoutError> for BindingError
impl From<LayoutError> for BindingError
Source§fn from(value: LayoutError) -> Self
fn from(value: LayoutError) -> Self
Converts to this type from the input type.
Source§impl From<SlotError> for BindingError
impl From<SlotError> for BindingError
Source§impl PartialEq for BindingError
impl PartialEq for BindingError
impl StructuralPartialEq for BindingError
Auto Trait Implementations§
impl Freeze for BindingError
impl RefUnwindSafe for BindingError
impl Send for BindingError
impl Sync for BindingError
impl Unpin for BindingError
impl UnsafeUnpin for BindingError
impl UnwindSafe for BindingError
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