pub struct RuntimeSyscallHandler {
pub costs: ExecutionCost,
pub program_id: Address,
pub sysvars: SysvarContext,
pub pending_cpi: Option<CpiRequest>,
pub return_data: ReturnData,
pub log_collector: LogCollector,
}Fields§
§costs: ExecutionCost§program_id: Address§sysvars: SysvarContext§pending_cpi: Option<CpiRequest>§return_data: ReturnData§log_collector: LogCollectorImplementations§
Source§impl RuntimeSyscallHandler
impl RuntimeSyscallHandler
pub fn new( costs: ExecutionCost, program_id: Address, sysvars: SysvarContext, log_collector: LogCollector, ) -> Self
Trait Implementations§
Source§impl SyscallHandler for RuntimeSyscallHandler
impl SyscallHandler for RuntimeSyscallHandler
fn handle( &mut self, name: &str, registers: [u64; 5], memory: &mut Memory, compute: ComputeMeter, ) -> SbpfVmResult<u64>
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeSyscallHandler
impl !Send for RuntimeSyscallHandler
impl !Sync for RuntimeSyscallHandler
impl !UnwindSafe for RuntimeSyscallHandler
impl Freeze for RuntimeSyscallHandler
impl Unpin for RuntimeSyscallHandler
impl UnsafeUnpin for RuntimeSyscallHandler
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
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