#[repr(transparent)]pub struct SysNr(pub isize);Expand description
A helper to distinguish the syscall number from other parameters.
We can’t really help you with others but this one is somewhat important. Furthermore it’s a great help internally where it ensure we’ve placed the parameter at the right location. The type is a transparent wrapper.
This further enables a namespaced access to constants and call numbers that are conditionally available per system ABI.
Tuple Fields§
§0: isizeAuto Trait Implementations§
impl Freeze for SysNr
impl RefUnwindSafe for SysNr
impl Send for SysNr
impl Sync for SysNr
impl Unpin for SysNr
impl UnwindSafe for SysNr
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