pub struct DecodedFrame {
pub authority: Pubkey,
pub cursor: u32,
pub index_count: u16,
pub index_cap: u16,
pub generation: u64,
pub payload_at: Vec<u16>,
pub tape: Vec<u8>,
}Expand description
Snapshot of on-chain Frame account data.
Fields§
§cursor: u32§index_count: u16§index_cap: u16§generation: u64§payload_at: Vec<u16>§tape: Vec<u8>Implementations§
Source§impl DecodedFrame
impl DecodedFrame
pub fn read_u64(&self, sv: &ScratchValue) -> Result<u64, ScratchError>
pub fn read_value(&self, sv: &ScratchValue) -> Result<TypedValue, ScratchError>
Trait Implementations§
Source§impl Clone for DecodedFrame
impl Clone for DecodedFrame
Source§impl Debug for DecodedFrame
impl Debug for DecodedFrame
impl Eq for DecodedFrame
Source§impl PartialEq for DecodedFrame
impl PartialEq for DecodedFrame
impl StructuralPartialEq for DecodedFrame
Auto Trait Implementations§
impl Freeze for DecodedFrame
impl RefUnwindSafe for DecodedFrame
impl Send for DecodedFrame
impl Sync for DecodedFrame
impl Unpin for DecodedFrame
impl UnsafeUnpin for DecodedFrame
impl UnwindSafe for DecodedFrame
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more