pub struct QueryModule { /* private fields */ }Expand description
See query_module(2) for info on this syscall.
Implementations§
Source§impl QueryModule
impl QueryModule
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the syscall. Use the with_* functions to build up the
arguments to this syscall.
Sourcepub fn with_which(self, v: i32) -> Self
pub fn with_which(self, v: i32) -> Self
Sets this argument to the given value.
Sourcepub fn with_buf(self, v: Option<AddrMut<'_, c_void>>) -> Self
pub fn with_buf(self, v: Option<AddrMut<'_, c_void>>) -> Self
Sets this argument to the given value.
Sourcepub fn with_bufsize(self, v: usize) -> Self
pub fn with_bufsize(self, v: usize) -> Self
Sets this argument to the given value.
Trait Implementations§
Source§impl Clone for QueryModule
impl Clone for QueryModule
impl Copy for QueryModule
Source§impl Debug for QueryModule
impl Debug for QueryModule
Source§impl Default for QueryModule
impl Default for QueryModule
Source§impl Displayable for QueryModule
impl Displayable for QueryModule
Source§fn fmt<M: MemoryAccess>(
&self,
memory: &M,
outputs: bool,
f: &mut Formatter<'_>,
) -> Result
fn fmt<M: MemoryAccess>( &self, memory: &M, outputs: bool, f: &mut Formatter<'_>, ) -> Result
Displays a syscall with all of its arguments.
Source§fn display<'a, M>(&'a self, memory: &'a M) -> Display<'a, M, Self>where
M: MemoryAccess,
Self: Sized,
fn display<'a, M>(&'a self, memory: &'a M) -> Display<'a, M, Self>where
M: MemoryAccess,
Self: Sized,
Returns an object that implements
std::fmt::Display and displays only
syscall inputs.Source§fn display_with_outputs<'a, M>(&'a self, memory: &'a M) -> Display<'a, M, Self>where
M: MemoryAccess,
Self: Sized,
fn display_with_outputs<'a, M>(&'a self, memory: &'a M) -> Display<'a, M, Self>where
M: MemoryAccess,
Self: Sized,
Returns an object that implements
std::fmt::Display and displays
syscall inputs as well as outputs. Useful for displaying pointer
arguments that are only valid after a syscall has been executed.impl Eq for QueryModule
Source§impl From<QueryModule> for Syscall
Available on non-AArch64 only.
impl From<QueryModule> for Syscall
Available on non-AArch64 only.
Source§fn from(x: QueryModule) -> Self
fn from(x: QueryModule) -> Self
Converts to this type from the input type.
Source§impl From<QueryModule> for SyscallArgs
impl From<QueryModule> for SyscallArgs
Source§fn from(syscall: QueryModule) -> Self
fn from(syscall: QueryModule) -> Self
Converts to this type from the input type.
Source§impl From<SyscallArgs> for QueryModule
impl From<SyscallArgs> for QueryModule
Source§fn from(raw: SyscallArgs) -> Self
fn from(raw: SyscallArgs) -> Self
Converts to this type from the input type.
Source§impl PartialEq for QueryModule
impl PartialEq for QueryModule
impl StructuralPartialEq for QueryModule
Source§impl SyscallInfo for QueryModule
impl SyscallInfo for QueryModule
Auto Trait Implementations§
impl Forget for QueryModule
impl Freeze for QueryModule
impl Move for QueryModule
impl RefUnwindSafe for QueryModule
impl Send for QueryModule
impl Sync for QueryModule
impl Unpin for QueryModule
impl UnsafeUnpin for QueryModule
impl UnwindSafe for QueryModule
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