pub struct PreflightContext<'a> { /* private fields */ }Expand description
Preflight context for validation
Provides read-only access to state during preflight phase.
Only keys declared via Transaction::keys() can be accessed.
Implementations§
Source§impl<'a> PreflightContext<'a>
impl<'a> PreflightContext<'a>
Sourcepub fn get(&self, key: &[u8]) -> Result<TypedValue>
pub fn get(&self, key: &[u8]) -> Result<TypedValue>
Get a typed value from state
§Errors
Returns UndeclaredKeyAccess if the key was not declared via keys().
Auto Trait Implementations§
impl<'a> Freeze for PreflightContext<'a>
impl<'a> !RefUnwindSafe for PreflightContext<'a>
impl<'a> Send for PreflightContext<'a>
impl<'a> Sync for PreflightContext<'a>
impl<'a> Unpin for PreflightContext<'a>
impl<'a> UnsafeUnpin for PreflightContext<'a>
impl<'a> !UnwindSafe for PreflightContext<'a>
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