Struct starnix_syscalls::decls::SyscallDecl
source · pub struct SyscallDecl {
pub number: u64,
pub name: &'static str,
}
Expand description
A system call declaration.
Describes the name of the syscall and its number.
Fields§
§number: u64
§name: &'static str
Implementations§
source§impl SyscallDecl
impl SyscallDecl
sourcepub fn from_number(number: u64) -> SyscallDecl
pub fn from_number(number: u64) -> SyscallDecl
The SyscallDecl for the given syscall number.
Returns &DECL_UNKNOWN if the given syscall number is not known.
Trait Implementations§
source§impl Clone for SyscallDecl
impl Clone for SyscallDecl
source§fn clone(&self) -> SyscallDecl
fn clone(&self) -> SyscallDecl
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 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