pub enum FrameError {
UnexpectedEof {
needed: usize,
at: usize,
},
AccountCountOutOfRange(u64),
MalformedDuplicateMarker {
slot: usize,
marker: u8,
},
DataLenOutOfRange {
slot: usize,
data_len: u64,
},
OffsetOverflow {
slot: usize,
},
}Expand description
Errors returned by the safe parser.
Variants§
UnexpectedEof
Buffer ended before the full frame could be parsed.
AccountCountOutOfRange(u64)
Account count exceeds the compiled-in cap (256).
MalformedDuplicateMarker
Duplicate marker refers to a non-earlier slot (forward ref or self).
DataLenOutOfRange
Data length field larger than the remaining buffer.
OffsetOverflow
Arithmetic overflow while computing the next slot offset.
Trait Implementations§
Source§impl Clone for FrameError
impl Clone for FrameError
Source§fn clone(&self) -> FrameError
fn clone(&self) -> FrameError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameError
impl Debug for FrameError
Source§impl Display for FrameError
impl Display for FrameError
Source§impl PartialEq for FrameError
impl PartialEq for FrameError
impl Copy for FrameError
impl Eq for FrameError
impl StructuralPartialEq for FrameError
Auto Trait Implementations§
impl Freeze for FrameError
impl RefUnwindSafe for FrameError
impl Send for FrameError
impl Sync for FrameError
impl Unpin for FrameError
impl UnsafeUnpin for FrameError
impl UnwindSafe for FrameError
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