pub struct SyscallVal<'a, T> {
pub reg: SyscallReg,
pub args: [SyscallReg; 6],
/* private fields */
}
Expand description
A syscall argument or return value. It implements Display
, and only reads memory and
converts types when being formatted.
Fields§
§reg: SyscallReg
§args: [SyscallReg; 6]
Implementations§
source§impl<'a, T> SyscallVal<'a, T>
impl<'a, T> SyscallVal<'a, T>
pub fn new( reg: SyscallReg, args: [SyscallReg; 6], options: FmtOptions, mem: &'a MemoryManager, ) -> Self
Trait Implementations§
source§impl<'a, T> Display for SyscallVal<'a, T>where
SyscallVal<'a, T>: SyscallDisplay,
impl<'a, T> Display for SyscallVal<'a, T>where
SyscallVal<'a, T>: SyscallDisplay,
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [i16; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [i16; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [i32; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [i32; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [i64; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [i64; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [i8; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [i8; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [isize; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [isize; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [u16; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [u16; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [u32; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [u32; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [u64; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [u64; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [u8; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [u8; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const K: usize> SyscallDisplay for SyscallVal<'_, [usize; K]>
impl<const K: usize> SyscallDisplay for SyscallVal<'_, [usize; K]>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const c_void>
impl SyscallDisplay for SyscallVal<'_, *const c_void>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const i16>
impl SyscallDisplay for SyscallVal<'_, *const i16>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const i32>
impl SyscallDisplay for SyscallVal<'_, *const i32>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const i64>
impl SyscallDisplay for SyscallVal<'_, *const i64>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const i8>
impl SyscallDisplay for SyscallVal<'_, *const i8>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const iovec>
impl SyscallDisplay for SyscallVal<'_, *const iovec>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const isize>
impl SyscallDisplay for SyscallVal<'_, *const isize>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const kernel_old_timeval>
impl SyscallDisplay for SyscallVal<'_, *const kernel_old_timeval>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const kernel_timespec>
impl SyscallDisplay for SyscallVal<'_, *const kernel_timespec>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const clone_args>
impl SyscallDisplay for SyscallVal<'_, *const clone_args>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const stat>
impl SyscallDisplay for SyscallVal<'_, *const stat>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const sysinfo>
impl SyscallDisplay for SyscallVal<'_, *const sysinfo>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const timespec>
impl SyscallDisplay for SyscallVal<'_, *const timespec>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const msghdr>
impl SyscallDisplay for SyscallVal<'_, *const msghdr>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const sockaddr>
impl SyscallDisplay for SyscallVal<'_, *const sockaddr>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const u16>
impl SyscallDisplay for SyscallVal<'_, *const u16>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const u32>
impl SyscallDisplay for SyscallVal<'_, *const u32>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const u64>
impl SyscallDisplay for SyscallVal<'_, *const u64>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const u8>
impl SyscallDisplay for SyscallVal<'_, *const u8>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, *const usize>
impl SyscallDisplay for SyscallVal<'_, *const usize>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, AddressFamily>
impl SyscallDisplay for SyscallVal<'_, AddressFamily>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, ClockId>
impl SyscallDisplay for SyscallVal<'_, ClockId>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, ClockNanosleepFlags>
impl SyscallDisplay for SyscallVal<'_, ClockNanosleepFlags>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, CloneFlags>
impl SyscallDisplay for SyscallVal<'_, CloneFlags>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, CloseRangeFlags>
impl SyscallDisplay for SyscallVal<'_, CloseRangeFlags>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, EfdFlags>
impl SyscallDisplay for SyscallVal<'_, EfdFlags>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, ITimerId>
impl SyscallDisplay for SyscallVal<'_, ITimerId>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, MRemapFlags>
impl SyscallDisplay for SyscallVal<'_, MRemapFlags>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, MapFlags>
impl SyscallDisplay for SyscallVal<'_, MapFlags>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, Mode>
impl SyscallDisplay for SyscallVal<'_, Mode>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, MsgFlags>
impl SyscallDisplay for SyscallVal<'_, MsgFlags>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, NoArg>
impl SyscallDisplay for SyscallVal<'_, NoArg>
fn fmt( &self, _f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, OFlag>
impl SyscallDisplay for SyscallVal<'_, OFlag>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, PrctlOp>
impl SyscallDisplay for SyscallVal<'_, PrctlOp>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, ProtFlags>
impl SyscallDisplay for SyscallVal<'_, ProtFlags>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl<const LEN_INDEX: usize> SyscallDisplay for SyscallVal<'_, SyscallBufferArg<LEN_INDEX>>
impl<const LEN_INDEX: usize> SyscallDisplay for SyscallVal<'_, SyscallBufferArg<LEN_INDEX>>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl<const LEN_INDEX: usize> SyscallDisplay for SyscallVal<'_, SyscallSockAddrArg<LEN_INDEX>>
impl<const LEN_INDEX: usize> SyscallDisplay for SyscallVal<'_, SyscallSockAddrArg<LEN_INDEX>>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, SyscallStringArg>
impl SyscallDisplay for SyscallVal<'_, SyscallStringArg>
fn fmt( &self, f: &mut Formatter<'_>, options: FmtOptions, mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, i16>
impl SyscallDisplay for SyscallVal<'_, i16>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, i32>
impl SyscallDisplay for SyscallVal<'_, i32>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, i64>
impl SyscallDisplay for SyscallVal<'_, i64>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, i8>
impl SyscallDisplay for SyscallVal<'_, i8>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, isize>
impl SyscallDisplay for SyscallVal<'_, isize>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, u16>
impl SyscallDisplay for SyscallVal<'_, u16>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, u32>
impl SyscallDisplay for SyscallVal<'_, u32>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, u64>
impl SyscallDisplay for SyscallVal<'_, u64>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, u8>
impl SyscallDisplay for SyscallVal<'_, u8>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
source§impl SyscallDisplay for SyscallVal<'_, usize>
impl SyscallDisplay for SyscallVal<'_, usize>
fn fmt( &self, f: &mut Formatter<'_>, _options: FmtOptions, _mem: &MemoryManager, ) -> Result
Auto Trait Implementations§
impl<'a, T> Freeze for SyscallVal<'a, T>
impl<'a, T> !RefUnwindSafe for SyscallVal<'a, T>
impl<'a, T> !Send for SyscallVal<'a, T>
impl<'a, T> !Sync for SyscallVal<'a, T>
impl<'a, T> Unpin for SyscallVal<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for SyscallVal<'a, T>
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> 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