#[non_exhaustive]pub enum FrameContractViolation {
WireLengthChanged {
measured: usize,
observed: usize,
},
WriteRangeUnavailable {
measured: usize,
written: usize,
observed: usize,
},
}Expand description
A frame changed the byte-view shape promised at commit.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WireLengthChanged
The current byte-view length differs from the committed measurement.
Fields
The cached progress range was unavailable in the current byte view.
Trait Implementations§
Source§impl Clone for FrameContractViolation
impl Clone for FrameContractViolation
impl Copy for FrameContractViolation
Source§impl Debug for FrameContractViolation
impl Debug for FrameContractViolation
Source§impl Display for FrameContractViolation
impl Display for FrameContractViolation
impl Eq for FrameContractViolation
Source§impl Error for FrameContractViolation
impl Error for FrameContractViolation
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 FrameContractViolation
impl PartialEq for FrameContractViolation
impl StructuralPartialEq for FrameContractViolation
Auto Trait Implementations§
impl Freeze for FrameContractViolation
impl RefUnwindSafe for FrameContractViolation
impl Send for FrameContractViolation
impl Sync for FrameContractViolation
impl Unpin for FrameContractViolation
impl UnsafeUnpin for FrameContractViolation
impl UnwindSafe for FrameContractViolation
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