pub struct RestrictedState {
pub bound_state: NonNull<zx_restricted_exception_t>,
/* private fields */
}Expand description
RestrictedState manages accesses into the restricted state VMO.
See zx_restricted_bind_state.
Fields§
§bound_state: NonNull<zx_restricted_exception_t>Implementations§
Source§impl RestrictedState
impl RestrictedState
Sourcepub fn bind_and_map(
register_state: &mut RegisterState<RegisterStorageEnum>,
) -> Result<Self, Status>
pub fn bind_and_map( register_state: &mut RegisterState<RegisterStorageEnum>, ) -> Result<Self, Status>
Allocates a VMO for the restricted state and maps it into the Starnix kernel.
The VMO is created using zx_restricted_bind_state and then mapped into the
kernel’s address space. This allows Starnix to inspect and modify the
restricted state (registers) of the task.
pub fn read_exception(&self) -> ExceptionReport
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RestrictedState
impl RefUnwindSafe for RestrictedState
impl !Send for RestrictedState
impl !Sync for RestrictedState
impl Unpin for RestrictedState
impl UnsafeUnpin for RestrictedState
impl UnwindSafe for RestrictedState
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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