pub enum SyscallName {
Show 56 variants
Send,
SendWGas,
SendCommit,
SendCommitWGas,
SendInit,
SendPush,
ReservationSend,
ReservationSendCommit,
SendInput,
SendPushInput,
SendInputWGas,
Reply,
ReplyWGas,
ReplyCommit,
ReplyCommitWGas,
ReplyPush,
ReservationReply,
ReservationReplyCommit,
ReplyInput,
ReplyPushInput,
ReplyInputWGas,
CreateProgram,
CreateProgramWGas,
Read,
ReplyTo,
SignalFrom,
Size,
ReplyCode,
SignalCode,
MessageId,
ProgramId,
Source,
Value,
EnvVars,
BlockHeight,
BlockTimestamp,
GasAvailable,
ValueAvailable,
Exit,
Leave,
Wait,
WaitFor,
WaitUpTo,
Wake,
Panic,
OomPanic,
Alloc,
Free,
FreeRange,
SystemBreak,
ReplyDeposit,
Debug,
Random,
ReserveGas,
UnreserveGas,
SystemReserveGas,
}
Expand description
All available syscalls.
The type is mainly used to prevent from skipping syscall integration test for a newly introduced syscall or from typo in syscall name.
Variants§
Send
SendWGas
SendCommit
SendCommitWGas
SendInit
SendPush
ReservationSend
ReservationSendCommit
SendInput
SendPushInput
SendInputWGas
Reply
ReplyWGas
ReplyCommit
ReplyCommitWGas
ReplyPush
ReservationReply
ReservationReplyCommit
ReplyInput
ReplyPushInput
ReplyInputWGas
CreateProgram
CreateProgramWGas
Read
ReplyTo
SignalFrom
Size
ReplyCode
SignalCode
MessageId
ProgramId
Source
Value
EnvVars
BlockHeight
BlockTimestamp
GasAvailable
ValueAvailable
Exit
Leave
Wait
WaitFor
WaitUpTo
Wake
Panic
OomPanic
Alloc
Free
FreeRange
SystemBreak
ReplyDeposit
Debug
Random
ReserveGas
UnreserveGas
SystemReserveGas
Implementations§
Source§impl SyscallName
impl SyscallName
Sourcepub fn instrumentable() -> impl Iterator<Item = Self>
pub fn instrumentable() -> impl Iterator<Item = Self>
Returns iterator of all syscall names (actually supported by this module syscalls).
Sourcepub fn instrumentable_map() -> BTreeMap<String, SyscallName>
pub fn instrumentable_map() -> BTreeMap<String, SyscallName>
Returns map of all syscall string values to syscall names.
Sourcepub fn signature(self) -> SyscallSignature
pub fn signature(self) -> SyscallSignature
Returns signature for syscall by name.
Sourcepub fn returns_error(self) -> bool
pub fn returns_error(self) -> bool
Checks whether the syscall returns error either by writing to input error pointer or by returning value indicating an error.
There are only 3 syscalls returning error value: Alloc
, Free
&
FreeRange
.
Sourcepub fn is_fallible(self) -> bool
pub fn is_fallible(self) -> bool
Checks whether the syscall is fallible.
§Note:
This differs from SyscallName::returns_error
as fallible syscalls
are those last param of which is a mutable error pointer.
Trait Implementations§
Source§impl Clone for SyscallName
impl Clone for SyscallName
Source§fn clone(&self) -> SyscallName
fn clone(&self) -> SyscallName
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SyscallName
impl Debug for SyscallName
Source§impl Hash for SyscallName
impl Hash for SyscallName
Source§impl Ord for SyscallName
impl Ord for SyscallName
Source§fn cmp(&self, other: &SyscallName) -> Ordering
fn cmp(&self, other: &SyscallName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SyscallName
impl PartialEq for SyscallName
Source§impl PartialOrd for SyscallName
impl PartialOrd for SyscallName
Source§impl Sequence for SyscallName
impl Sequence for SyscallName
impl Copy for SyscallName
impl Eq for SyscallName
impl StructuralPartialEq for SyscallName
Auto Trait Implementations§
impl Freeze for SyscallName
impl RefUnwindSafe for SyscallName
impl Send for SyscallName
impl Sync for SyscallName
impl Unpin for SyscallName
impl UnwindSafe for SyscallName
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