Struct solana_rbpf::syscalls::SyscallWithContext
source · [−]pub struct SyscallWithContext {
pub context: u64,
}
Expand description
Excample of a syscall with internal state.
Fields
context: u64
Mutable state
Trait Implementations
sourceimpl SyscallObject<UserError> for SyscallWithContext
impl SyscallObject<UserError> for SyscallWithContext
Auto Trait Implementations
impl RefUnwindSafe for SyscallWithContext
impl Send for SyscallWithContext
impl Sync for SyscallWithContext
impl Unpin for SyscallWithContext
impl UnwindSafe for SyscallWithContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more