pub enum SectionBindError {
Missing {
kind: u32,
},
VersionMismatch {
kind: u32,
expected: u32,
actual: u32,
},
View {
kind: u32,
error: SectionViewError,
},
}Expand description
Error returned when binding a width-typed section by kind and version.
Returned by Snapshot::typed_section: a
single error covering the lookup, version check, and typed-view steps that
every layout crate previously open-coded with its own variants.
§Performance
perf: unspecified; errors are returned only from section-binding paths.
Variants§
Missing
No section with the requested kind was present.
VersionMismatch
The section was present but its version did not match.
Fields
View
The payload could not be borrowed as the requested little-endian word.
Trait Implementations§
Source§impl Clone for SectionBindError
impl Clone for SectionBindError
Source§fn clone(&self) -> SectionBindError
fn clone(&self) -> SectionBindError
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 SectionBindError
Source§impl Debug for SectionBindError
impl Debug for SectionBindError
Source§impl Display for SectionBindError
impl Display for SectionBindError
impl Eq for SectionBindError
Source§impl Error for SectionBindError
impl Error for SectionBindError
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 PartialEq for SectionBindError
impl PartialEq for SectionBindError
Source§fn eq(&self, other: &SectionBindError) -> bool
fn eq(&self, other: &SectionBindError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SectionBindError
Auto Trait Implementations§
impl Freeze for SectionBindError
impl RefUnwindSafe for SectionBindError
impl Send for SectionBindError
impl Sync for SectionBindError
impl Unpin for SectionBindError
impl UnsafeUnpin for SectionBindError
impl UnwindSafe for SectionBindError
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