pub struct MockSyscallHandler {
pub logs: Vec<String>,
}Expand description
Mock syscall handler for testing
Fields§
§logs: Vec<String>Trait Implementations§
Source§impl Debug for MockSyscallHandler
impl Debug for MockSyscallHandler
Source§impl Default for MockSyscallHandler
impl Default for MockSyscallHandler
Source§fn default() -> MockSyscallHandler
fn default() -> MockSyscallHandler
Returns the “default value” for a type. Read more
Source§impl SyscallHandler for MockSyscallHandler
impl SyscallHandler for MockSyscallHandler
fn handle( &mut self, name: &str, _registers: [u64; 5], _memory: &mut Memory, _compute: ComputeMeter, ) -> SbpfVmResult<u64>
Auto Trait Implementations§
impl Freeze for MockSyscallHandler
impl RefUnwindSafe for MockSyscallHandler
impl Send for MockSyscallHandler
impl Sync for MockSyscallHandler
impl Unpin for MockSyscallHandler
impl UnsafeUnpin for MockSyscallHandler
impl UnwindSafe for MockSyscallHandler
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