pub struct Registers {
pub data: User,
/* private fields */
}Fields§
§data: UserImplementations§
Source§impl Registers
impl Registers
Sourcepub fn builder() -> RegistersBuilder<((), (), (), (), ())>
pub fn builder() -> RegistersBuilder<((), (), (), (), ())>
Create a builder for building Registers.
On the builder, call .data(...)(optional), .process(...), .undefined(...)(optional), .cfa(...)(optional), .tid(...) to set the values of the fields.
Finally, call .build() to create the instance of Registers.
Source§impl Registers
impl Registers
pub fn new(proc: &Weak<Process>, tid: Pid) -> Self
pub fn read(&self, info: &RegisterInfo) -> Result<RegisterValue, SdbError>
pub fn write( &mut self, info: &RegisterInfo, value: RegisterValue, commit: bool, ) -> Result<(), SdbError>
pub fn read_by_id_as<T: From<RegisterValue>>( &self, id: RegisterId, ) -> Result<T, SdbError>
pub fn write_by_id<T: Into<RegisterValue>>( &mut self, id: RegisterId, value: T, commit: bool, ) -> Result<(), SdbError>
pub fn undefine(&mut self, id: RegisterId) -> Result<(), SdbError>
pub fn is_undefined(&self, id: RegisterId) -> Result<bool, SdbError>
pub fn flush(&mut self) -> Result<(), SdbError>
pub fn set_cfa(&mut self, addr: VirtualAddress)
pub fn cfa(&self) -> VirtualAddress
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registers
impl !RefUnwindSafe for Registers
impl !Send for Registers
impl !Sync for Registers
impl Unpin for Registers
impl !UnwindSafe for Registers
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