pub struct Entries { /* private fields */ }Expand description
Lookup table for syscall entries indexed by syscall number.
Entries wraps an internal HashMap<u64, Entry> populated from the
embedded syscall.json metadata. Use Entries::new() to construct an
instance and Entries::get(id) to retrieve the corresponding Entry.
Implementations§
Source§impl Entries
impl Entries
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Creates a new instance of Entries.
This function reads the contents of the syscall.json file and parses it into a HashMap<u64, Entry>.
If the parsing fails, an Err is returned.
§Errors
This function will return an Err if it fails to parse the syscall.json file.
§Returns
Returns a Result containing the newly created Entries instance if successful, or an Err if parsing fails.
Auto Trait Implementations§
impl Freeze for Entries
impl RefUnwindSafe for Entries
impl Send for Entries
impl Sync for Entries
impl Unpin for Entries
impl UnsafeUnpin for Entries
impl UnwindSafe for Entries
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