pub struct SyscallDecl {
pub number: u64,
pub arch_width: ArchWidth,
}Expand description
A system call declaration.
Describes the name of the syscall and its number.
Fields§
§number: u64§arch_width: ArchWidthImplementations§
Source§impl SyscallDecl
impl SyscallDecl
Sourcepub fn from_number(number: u64, arch_width: ArchWidth) -> SyscallDecl
pub fn from_number(number: u64, arch_width: ArchWidth) -> SyscallDecl
The SyscallDecl for the given syscall number.
Returns &DECL_UNKNOWN if the given syscall number is not known.
pub fn name(&self) -> &'static str
pub fn trace_name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SyscallDecl
impl Clone for SyscallDecl
Source§fn clone(&self) -> SyscallDecl
fn clone(&self) -> SyscallDecl
Returns a duplicate 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 SyscallDecl
impl Debug for SyscallDecl
impl Copy for SyscallDecl
Auto Trait Implementations§
impl Freeze for SyscallDecl
impl RefUnwindSafe for SyscallDecl
impl Send for SyscallDecl
impl Sync for SyscallDecl
impl Unpin for SyscallDecl
impl UnwindSafe for SyscallDecl
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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