Struct solana_bpf_loader_program::syscalls::SyscallPanic
source · pub struct SyscallPanic<'a, 'b> { /* private fields */ }
Expand description
Panic syscall function, called when the BPF program calls ’sol_panic_()` Causes the BPF program to be halted immediately
Implementations§
source§impl<'a, 'b> SyscallPanic<'a, 'b>
impl<'a, 'b> SyscallPanic<'a, 'b>
pub fn init( invoke_context: Rc<RefCell<&'a mut InvokeContext<'b>>> ) -> Box<dyn SyscallObject<BpfError> + 'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for SyscallPanic<'a, 'b>
impl<'a, 'b> !Send for SyscallPanic<'a, 'b>
impl<'a, 'b> !Sync for SyscallPanic<'a, 'b>
impl<'a, 'b> Unpin for SyscallPanic<'a, 'b>
impl<'a, 'b> !UnwindSafe for SyscallPanic<'a, 'b>
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